Description
In post Using attributes of the page itself from Feb '09 a question appeared regarding listing pages with any of the tags of the current page.
Not sure if the below idea comes even near to what was requested, but here you go …
In action
This page is tagged with: hidden listpages redirect tag tags. To see pages tagged with the same tags, click on one of the listed tags.
Code
This makes use of the redirect concept discussed in post Default ListPages values with URL attributes from Jan '09).
Two problems have shown up:
- When trying to hide the [[module Redirect ...]] code inside a [[collapsible show=" " hide=" "]] block, a left-over “-” shows. So instead, this code hides [[module Redirect ...]] inside a [[div style="display:none"]]
- Surprisingly enough it seems that Wikidot removes “display:none” from a [[div style="..."]] specification; as a workaround this code uses [[div style="display : none"]] (note the inserted spaces)
[[module ListPages category="code" tag="_code:module-listpages-tags" tagTarget="code:module-listpages-tags/noredirect/true" limit="1"]]
This page is tagged with: %%tags%%. To see pages tagged with the same tags, click on one of the listed tags.
[[/module]]
[[module ListPages category="*" separate="no" tags="@URL" tagTarget="code:module-listpages-tags/noredirect/true" limit="30" perPage="30"]]
%%linked_title%%: %%tags%%
[[/module]]
[!-- This redirect appends ...tags/(none) to the URL to avoid displaying untagged pages until the user has clicked a tag --]
[[div style="display : none"]]
[[module Redirect destination="http://snippets.wikidot.com/code:module-listpages-tags/noredirect/true/tags/(none)"]]
[[/div]]
Thanks to tsangk for this great snippet: conditional-blocks
text above inserted with:
[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]
Other snippets posted by ErichSteinboeck
TOC's from many pages - 16 Feb 2012 01:47
Redirect: To - 16 Feb 2012 01:37
Module Feed Drilldown: Details Page - 16 Feb 2012 01:24
Module Feed Drilldown - 16 Feb 2012 01:24
Module Feed: Collapsible - 16 Feb 2012 01:23
Module Categories - 16 Feb 2012 01:23
MiniRecentPosts With Limit - 16 Feb 2012 01:23
ListPages: Horizontal? - 16 Feb 2012 01:20
Choose A Page! - 15 Feb 2012 00:32
Redirect: From (1st) - 01 Mar 2009 18:18
Redirect: From (2nd) - 01 Mar 2009 18:17
Rate this solution
If you think this solution is useful — rate it up!






This is not entirely true… the apparent "-" is actually a space, underlined. If you change your CSS theme to have links without underlines (i.e. different colour link rather than underlined link), then the collapsible block will be completely invisible.
When you hover over that "invisible space", however, depending on your CSS for hovering over links, it may reveal itself through highlighting or underlining. But the width of a space is incredible small! It's almost impossible to find!
λ James Kanjo
Blog | Wikidot Expert | λ and Proud
Web Developer | HTML | CSS | JavaScript
Sorry lost this out of my sight. I will have to try this tags="=" thing again… will come back on it.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
great. Fabulous. How do you get rid of it. Or edit it?
i used it - now i cannot call this site anymore, because i get redirected…
You put a module re-direct in your sidebar. I answered this problem on the community forum, but in case you didn't see it use click on this link http://mycodebase.wikidot.com/nav:side/norender/true or enter it in your web browser address bar. Using /norender/true allows you to edit any page in these circumstances.
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
Strathview - Wikidot-based intranet, knowledebase and website development and management