Skip to content
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

Topic tags not working as explained #219

Open
FriendlyTroll opened this issue Dec 7, 2020 · 4 comments
Open

Topic tags not working as explained #219

FriendlyTroll opened this issue Dec 7, 2020 · 4 comments

Comments

@FriendlyTroll
Copy link

Hi, firstly thanks a lot for this plugin!

Now, the docs here https://www.dokuwiki.org/plugin:tag#topic explain that one can show tags with this syntax

{{topic>ns1?tag1 tag2}}
{{topic>.?tag1 tag2}}

However this isn't working for me. I checked and the tags definitely exist so does the namespace. What works is this

{{topic>mynamespace:tag1 mynamespace:tag2}}

I'm not sure if I'm doing something wrong or if this is really a bug, so I am writing here.

System Info:
Dokuwiki version Release 2020-07-29 "Hogfather" on buntu 18.04.5 LTS

@Klap-in
Copy link
Member

Klap-in commented Oct 3, 2022

For me {{topic>test?tag1}} works. With pages in 'test' that has the 'tag1' tag.

Using Igor with latest version of tag plugin.

@FriendlyTroll
Copy link
Author

Okay, it seems to work but not how I expected it. My tags are actually namespaced, so for example I have a page taged like
{{tag>myns1:ssl}}

What I thought the plugin will do then, is list these pages if I use the following
{{topic>myns1?ssl}}
which it won't. It will work with the namespace like this
{{topic>myns1?myns1:ssl}}

Which is kind of confusing but that's just me I guess.

@Klap-in
Copy link
Member

Klap-in commented Oct 5, 2022

I get what you mean.

{{topic>page_namespace?tag_namespace:tag1}}
If you set page_namespace, you request a search for pages which must be located in page_namespace, that has the tags set after the question mark. If that tag has own namespace e.g. tag_namespace, you have to add that namespace.

{{topic>books?status:lent}} makes list of pages e.g. books:snowwhite, books:dwarf, etc which were marked as 'lent'.

I'm wondering, which syntax could be sufficient for your wanted way of searching.
I think now something like:
Proposal: {{tag>myns1:}}, where you fill in only the namespace with semicolon.
Show any page with status tag: {{tag>status:}}, which will return pages with the tags 'status:lent', 'status:available', 'status:repair' etc.

@FriendlyTroll
Copy link
Author

Thanks for the clarification. I guess current modus operandi is fine, though I think a clear example should be put in the plugin's wiki page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants