i-net-software / dokuwiki-plugin-multiorphan

Administrative GUI to find all sorts of orphaned or wanted pages and media. This works using AJAX instead of loading everything into one page.
https://www.dokuwiki.org/plugin:multiorphan
5 stars 5 forks source link

"sidebar" listed as orphan #42

Open phallobst opened 4 years ago

phallobst commented 4 years ago

The nature of the "sidebar" page does not require any referencing link in order to be used, so it should be excluded from the orphan list.

gamma commented 4 years ago

Yes, but there are some more files that will have to be excluded afaik.

schniepp commented 2 years ago

@gamma: which files did you have in mind? I think it would mainly be all the pages named "sidebar" (sidebar.txt). These page names could simply be excluded from the search. The only downside would be if someone has named a page "sidebar" without having the sidebar plugin installed. A simple solution would be a checkbox, that sidebar used could check. A more sophisticated solution would be to detect the presence of an enabled plugin "sidebar", which then automatically enables the exclusion of pages names "sidebar".

rgleason commented 2 years ago

I think this would help a lot.

gamma commented 2 years ago

Sidebar is just once thing. E.g. were using "toc" files heavily - so I'd exclude them too, but that is not a thing for many other users. I'm think a global option filled with default excludes would fit the cases better. "sidebar" could be a default one.

schniepp commented 2 years ago

@gamma: sure that sounds like an amazing solution!

rgleason commented 2 years ago

To confirm, we use Sidebar TOC and indexmenu extensively.

gamma commented 2 years ago

To confirm, we use Sidebar TOC and indexmenu extensively.

You're referring plugins? I meant page names. Anyway, it can be customised with a good default.

rgleason commented 2 years ago

Yes we use the sidebar and a TOC, along with the indexmenu plugin.

gamma commented 2 years ago

BTW: There is an exclude pattern in the multiorphan page already.

rgleason commented 2 years ago

Good point

schniepp commented 2 years ago

BTW: There is an exclude pattern in the multiorphan page already.

I saw that... but unfortunately, I could not find any documentation how that works. It wasn't even clear to me whether this was an exclude or include pattern. But thanks for pointing that out! Perhaps, I should just play with it.

rgleason commented 2 years ago

@schiepp Did you figure out what to enter? If so, please share.

schniepp commented 2 years ago

@rgleason : as far as I can tell, the field RegEx to filter full ID: is a positive list (include pattern). When I insert simply sidebar, it only queries my sidebar pages. As far as I know, there is no NOT operator in regular expressions, so I don't see an obvious way of turning this into a negative list (exclusions), which is what would be needed here. (To exclude all sidebar pages, etc.)

asheenlevrai commented 2 years ago

Hi :)

Can anyone explain how RegEx to filter full ID works and how it can be used to filter results?

Thanks a lot

-a-

rgleason commented 2 months ago

For OpenCPN Wiki we use blank pages to control how sub namespaces appear. These get in the way sometimes and I want to exclude them. So using the RegEx line.

RegEx: This excludes/eliminates all the *:blank pages under opencpn:manual_basic

^(?!.opencpn:manual_basic:.:blank).*$

See this Editor Manual page https://opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:edit_user_manual:administrator:multiorphan_checker