ListPages custom format won't work in LiveTemplate

Bugs » #29


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 David MarseillesDavid Marseilles on 16 Jul 2009 20:22, last edited on 15 Nov 2009 14:03

This bug has been fixed

Description

ListPages included in the live portion of a live template works, but if you use a custom format with it, it displays nothing. Not even an error.

How to Reproduce

Community Polls uses a Live Template on new polls inside which is a ListPages Module designed to display poll options that the user creates from that poll page. So long as there is no custom formatting to the ListPages module, it will display the right poll options, but if you add custom editing (in order to display the rating of the particular poll option) it displays nothing.

[[module ListPages category="polloptions" tags="%%page_unix_name%%" order="ratingDesc"]]

The above works and displays any options you create (the page variable %%page_unix_name%% is used for tags because the NewPage module uses this to make sure each polls polling options are kept unique to that poll while still being stored in the same directory. This limits what users are required to input while avoiding a directory explosion from creating a new directory for each poll).

[[module ListPages category="polloptions" tags="%%page_unix_name%%"]]
%%linked_title%% - %%rating%%
[[/module]]

The above, again, in the live template, displays nothing on the same page that a module with no custom formatting does work.

View the page source at the Template itself for more information.

Browsers

Has bug

Works correctly

Workarounds

Doesn't work — If RatedPages had a tags attribute, that would allow me to use that module instead.

Contact

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+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.