gturri / nspages

Plugin for dokuwiki - Display tables of content
http://www.dokuwiki.org/plugin:nspages
GNU General Public License v2.0
25 stars 23 forks source link

Tag Listing #126

Open GitWonder opened 2 years ago

GitWonder commented 2 years ago

This is a feature request to add Tags to the options to list a set of tagged pages

Eg

<nspages -tags -include:animals:four_legs -exclude:gerbils:hamsters>

To show all pages tagged four_legs and animals but not hamsters and gerbils.

Have not considered in the above example the difference between AND / OR in the include statement, but it's probably something that would need to be included to cover, tags of (animal [reptile|mammal])

gturri commented 2 years ago

Hi,

what do you mean by tag? Is it related to this plugin https://www.dokuwiki.org/plugin:tag ?

GitWonder commented 2 years ago

Yes that's the one

gturri commented 2 years ago

thanks for this information.

It indeed feels like an interesting feature.

However I must admit that I'm not too sure when I will have time to work on it. I'm afraid it won't be any time soon... :-/ That being said I would gladly accept pull request! :) (I guess a way to work on such pull request would be to mimic the way the -pregOn and -pregOff options are implemented, just adapting the value on which the filter is done)

GitWonder commented 2 years ago

Unfortunately I am not a programmer so wouldn't know where to start

gturri commented 2 years ago

Update on my previous message (in case a developer interested in this feature arrives here): I had a look at the tag plugin, and it may be a bit more complex to implement this feature that what I said because it does not seem so trivial to retrieve the tags of a given page (unless I missed something)