Bugs » #21
This section on the Community is no longer supported, in favour of Wikidot's Official Feedback Site.
It is retained here for archiving purposes.
Bugs
Tags
Posted by pieterh on 16 Aug 2008 10:46, last edited on 05 Mar 2009 05:17
This bug has been fixed |
Description
Since 15 August 2008, the ListPages tage="=" option is showing bogus page names. Instead of showing the actual names of each page it shows the current page name, each time.
How to Reproduce
See http://www.devilswiki.com/wiki:baldness. The 'Related' column should show a list of pages, but instead it shows 'Baldness' over and over.
Workarounds
None known.
Contact
Pieter Hintjens - moc.xitami|hp#moc.xitami|hp.
Rate this Bug
Rate the urgency of this bug. If you think it is more urgent and important than it's current rating suggests, rate it up.
The tag seems to be working on my site, but it is definitely still wrong on yours. What's the full ListPages code on those pages?
Here's a wiihd post where it's working normally.
The full code I used on that page is:
(I put that in the template before they got rid of those rss arguments)
The module works on my site completely perfect…. what could be the difference… - the template?
Edit: Sorry, this is the reply for Pieter….
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
This is the code:
I've tried your code and tried reverting to an older template, no difference. I've tried removing some pages from the category but that changes nothing. As far as I can tell the error started appearing with the last update of Wikidot.
Portfolio
so i copy this code to a test page
preview it, and all seems fine.
then save it,
nothing listed!!
weird :-(
edit… as david pointed out, i hadn't tagged the page.
Now tried a number of things to reproduce the problem. as of yet.. have not succeeded
Did you tag the test page?
To follow up, I put this code (from devil's wiki) on my mushroom men post, and it functioned just fine (you can view it working in that pages history, the last revision).
I'm a little at a loss. Have you tried posting the similar tags code to a blank page with no other elements at all, and then just putting a popular tag on it? It's either site specific or there's some piece of code on the same page causing the module to malfunction. I don't doubt that the problem is new, but the tag is clearly not universally broken, so we may as well narrow down the cause.
OK, this one is fixed.
The problem was affecting only ListPages modules within the _template pages. We were lacking some regular expressions to properly escape the body of ListPages module and the variables inside it (like %%linked_title%%, but not %%content%%) were processed as if they belonged to the _template itself (like documented here: http://www.wikidot.com/doc:templates#toc6).
Although we have fixed the _template handling, all the affected pages need to be recompiled. The quickest way to do this is to edit the corresponding _template page, add a space or newline somewhere (not beginning nor end of page because it would be trimmed anyway) and save the _template.
Thanks for reporting this one! Right now we are busy with cross-domain issues so once again big thanks for describing this issue! In fact finding the issue, identifying it and extracting is the most important work!
Michal
Michał Frąckowiak @ Wikidot Inc.
Visit my blog at michalf.me
Thanks!
Portfolio