Bugs » #30
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 James Kanjo on 26 Oct 2009 02:45, last edited on 12 Feb 2010 04:41
This bug has been fixed |
Description
When you use the parent variables within an _template:
- %%parent_category%%
- %%parent_name%%
- %%parent_fullname%%
- %%parent_title%%
- %%parent_title_linked%%
And then you create a new page in that category, the parent variables are ignored completely.
More explained, if your new page has a parent, then all the parent variables return nothing.
This problem fixes itself when you:
- Recompile each individual affected page (click "edit" and then click "save" without changing anything)
- Make an actual change to the _template itself, which will recompile all pages of the category (merely recompiling the _template page is not enough to fix the affected pages)
How to Reproduce
_template
%%parent_category%%
%%parent_name%%
%%parent_fullname%%
%%parent_title%%
%%parent_title_linked%%
Create a new page in the same category
Doesn't matter what goes in here
Workarounds
You can use the ListPages module to display your parent variables properly:
[[module ListPages range="."]]
%%parent_fullname%%
other parent variables
[[/module]]
This workaround will always work from the moment you create the new page.
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.