ListPages '=' shows bogus page names

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.

Posted by pieterh 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.

rating: +3
Interesting

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:

++ Similar Posts
[[module ListPages tags="=" limit="5" rssEmbed="no" rssShow="no" separate="no"]]
%%linked_title%%
[[/module]]

(I put that in the template before they got rid of those rss arguments)

by David Marseilles David Marseilles , 17 Aug 2008 03:12
Re: Interesting
Helmut_pdorf Helmut_pdorf 17 Aug 2008 17:02

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 ?

Last edited on 17 Aug 2008 17:06 by Helmut_pdorf
by Helmut_pdorf Helmut_pdorf , 17 Aug 2008 17:02
Not caused by page source
pieterh pieterh 17 Aug 2008 16:50

This is the code:

[[module Rate]]
[[div style="float:right; width: 20%"]]
Related
[[module ListPages tags="=" order="titleAsc" separate="no"]]
%%linked_title%%
[[/module]]
++ Similar Posts
[[module ListPages tags="=" limit="5" rssEmbed="no" rssShow="no" separate="no"]]
%%linked_title%%
[[/module]]
[[/div]]
%%content%%
[[module Comments title=""]]
====
Page content

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.

by pieterh pieterh , 17 Aug 2008 16:50
Re: Not caused by page source
Phil Chett Phil Chett 17 Aug 2008 19:13

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

Last edited on 18 Aug 2008 09:00 by Phil Chett
by Phil Chett Phil Chett , 17 Aug 2008 19:13
Re: Not caused by page source

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).

Related
[[module ListPages tags="=" order="titleAsc" separate="no"]]
%%linked_title%%
[[/module]]

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.

Last edited on 17 Aug 2008 20:34 by David Marseilles
by David Marseilles David Marseilles , 17 Aug 2008 20:24
Fixed, big thanks!

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

by michal-frackowiak michal-frackowiak , 18 Aug 2008 09:18
Confirmed & closed
pieterh pieterh 19 Aug 2008 08:11

Thanks!

by pieterh pieterh , 19 Aug 2008 08:11
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /