Find Untagged Pages

Posted by Helmut_pdorf on 20 Jan 2009 10:53, last edited by GoVegan on 09 May 2010 05:43

Tags: -l4 tags untagged

rating: +2+x

In wikidot you cannot select pages with "non-existing" tags - it does not work (in module ListPages or other) to try ideas like:

  • tags="NONE" ( a constant )
  • tags ="-*" ( de-select all possible tags)
  • tags="+" ( select all tags with nothing - lenght = zero)
  • iftags has the same problem…

therefore the question:

How to find pages without tags?

I found only a solution based on the fact that module ListPages inserts a standard phrase "no tags found for this page" in the variable %%tags%% if a page has no tags assigned.

On html output you can use the "Edit" & "Search" Command short form:

  • "cntrl" + "F" ( search) and
  • "cntrl" + "G" ( next find)

Perhaps other people find another solution ?
A sort would be useful…

Using %%tags%%

( as a test I used the "wishlist:" category)

[[module ListPages category="wishlist" order="titleAsc" perPage="200" limit="7" separate="false" prependLine="||~ page(title) ||~ tags ||"]]
|| %%linked_title%% || %%tags%%||
[[/module]]

helmuti_pdorf does not match any existing user name. Please visit his/her userPage.

Update: List only pages with no tags at all

I think that now (beginning from August 2009) there is a possibility to list only untagged pages by using tags="-". It is documented in the ListPages doc.

Here's the code for ListPages module which will list all untagged pages from a category "wishlist" at this site.

[[module ListPages category="wishlist" tag="-" order="titleAsc" perPage="200" separate="false" prependLine="||~ page(title) ||~ tags ||"]]
|| %%linked_title%% || %%tags%%||
[[/module]]

BrunhildaBrunhilda. Please visit his/her userPage.


Related articles

Comments

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.