mprins / dokuwiki-plugin-backlinks

Lists all pages that link back to a given page using the first headline as link title
https://dokuwiki.org/plugin:backlinks
GNU General Public License v2.0
7 stars 6 forks source link

Include namespace and exclude sub-namespace #27

Open Juergen-aus-Zuendorf opened 4 years ago

Juergen-aus-Zuendorf commented 4 years ago

Hi,

is it possible to include a certain namespace and exclude a sub-namespace of this namespace? I don't have success with the given syntax elements.

Example: {{backlinks>.#mynamespace #!mysubnamespace}}

Best regards Juergen

mprins commented 4 years ago

I've never tried, the code doing the filtering is here: https://github.com/mprins/dokuwiki-plugin-backlinks/blob/6789119c49d5632a5e419d6f317265aeb4c02143/syntax.php#L107-L121

it doesn't seem to make provisions for that use case.

Testcases with the syntax are available here: https://github.com/mprins/dokuwiki-plugin-backlinks/tree/master/_test/data/pages