Page MenuHomePhabricator

Using magic words ({{PAGENAME}}) in parser function tags (<dpl>)
Closed, ResolvedPublic

Description

It was recently brought to my attention that magic words inside tags are no longer expanded before the tag is called. That means that a template like the following:

<dpl>category={{PAGENAME}}</dpl>

can no longer be used to show recent changes on a category page.

This happens on DPL3 and any other parser function.

Interestingly, {{PAGENAME}} is expanded in the error pages produced by DPL3, so you can easily get confused when it tells you there are no results for a category.

Event Timeline

MarkAHershberger raised the priority of this task from to Needs Triage.
MarkAHershberger updated the task description. (Show Details)
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 26 2015, 3:44 PM

Note, that although I mentioned DPL3 here this happens in DPL2 and other versions.

I put this on our internal tracker to be worked on and I should get to it this week if not today.

copying my comment on https://github.com/Alexia/DynamicPageList/issues/49 where I also reported this: Note that using the parserfunction #tag makes it possible for this to work (kind of) as expected.

Support WORKSFORME: Use #tag for template programming parts in <tags>

This is fixed in the develop branch on the Github repository. It will be packaged in the next release.
https://github.com/Alexia/DynamicPageList/commit/2ba36f01f0a417480c19c20bdeeee0a995aa86c3

Support WORKSFORME: Use #tag for template programming parts in <tags>

If you want to close it that way, go ahead. Alexia also updated DPL3 to
work inside of <dpl>.

Support WORKSFORME: Use #tag for template programming parts in <tags>

If you want to close it that way, go ahead. Alexia also updated DPL3 to
work inside of <dpl>.

No, when there is a extension solution, than that is okay, but there is also another way to use the tag with template syntax

Alexia closed this task as Resolved.Sep 10 2015, 4:29 PM
Alexia set Security to None.

This is fixed/improved in the 3.0.4 release.
https://github.com/Alexia/DynamicPageList/releases/tag/3.0.4