|
PITS /
00986Summary: PageVariables substitution in pagelist's (:template defaults:)
Created: 2007-10-05 06:59
Status: Discussion
Category: Feature
From: MateuszCzaplinski
Assigned:
Priority: 3
Version: 2.2.0-beta63
OS:
Description: As far as I've tried & read the source, it seems that PageVariables substitution/FmtPageName isn't done on pagelist options retrieved from (:template defaults:). As I understand, in the case of regular options, like (:pagelist group={$Group}:), it works because the '' markup is sheduled very early in page processing, and preceeds the '(:pagelist:)' directive markup. I believe it should be a fairly easy change to add PageVariables parsing of the parameters specified in the (:template defaults:) for a pagelist. And if it was done, more options could be moved to the template. A good example what would probably be a very common use is creating a template named ' Unless I understand wrongly and that's already possible. It's not quite as easy as it sounds at first. For one, we should consider not only page variable substitutions, but also markup expressions. In fact, the whole reason I haven't committed on this yet is that I'm looking for a common underlying model to be used for all variable/expression handling in markup -- I don't want to end up with something that works one way in one section and a different way in others. Also, a default parameter like Pm November 13, 2007, at 08:00 AM |