-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example for -excludeOnTitle ? #53
Comments
Hi, I don't really know, what you've done should work. There may be a bug. As I don't use DokuWiki anymore I'm not willing to try to debug. If you want to try, you can add, in the function Sorry for not being able to really help. |
OK, I understand, thank you for your replay anyway. I'm not familiar with dokuwiki internals and php but I put in some echo statements and found out that my problem is a bit more complicated as my page content and so the title to be filtered is in the start page of a spereate namespace. So the -maxDepth:1 prevents catlist to look into the start page but is showing the title of the namespace start page. This confused me. To explain with an example: ns1:ns2:ns3:start contains first title hugo and I want to exclude all Z_ so in the example Z_hugo So any idea how to tell this to catlist correctly ? |
Oh, I see, you want to filter namespaces based on the title of their start page. It should work if you use
(line 386 of syntex.php) above the line
Hope it works |
yes, that's the point. Thank you for your suggestion. I moved the lines like this:
And it works for the titles in the startpages of a namespace as you expected. But one thing I miss now is that I want to combine
I want to see hugo,emma and not Z_paul and not whatever title ns6-ms has... Any idea on how to achieve this ? |
Well, first I don't know why the resulting list is empty, it should not exclude all namespaces... Then, my suggestion was to move code related to the start page title before the exclusion test, like that :
Finally, the exclusion with catlist only works on title or name for all exclusion options at the same time. You cannot exclude on page name for one ( If you disregard |
HI,
thank you for your work on this usefull plugin.
I have a problem understanding the -excludeOnTitle option. Where do I specify what titles are to be excluded ?
I tried this to exclude pages in ns1:ns2 with first title starting with "Z_"
but it does not work.
I think the example excludes pagenames starting wit "Z_*" but no glue how to specify to exclude based on the first title.
Any help will be welcome.
The text was updated successfully, but these errors were encountered: