[pmwiki-users] Properties

Patrick R. Michaud pmichaud at pobox.com
Mon Dec 12 15:14:31 CST 2005


On Mon, Dec 12, 2005 at 02:48:05PM -0500, Martin Fick wrote:
> On Mon, Dec 12, 2005 at 12:47:10PM -0600, Patrick R. Michaud wrote:
> > Given the current markup processing structure, in order for the
> > (:if property ...:) conditional to work, all of the (:property:) tags 
> > have to be processed before it.  This means that there's not really a 
> > possibility to have conditional property settings, so
> > 
> >     (:if auth edit:)
> >     (:property something=value:)
> >     (:ifend:)
> > 
> > always sets the property "something" even if the current visitor
> > doesn't have edit permissions.
> 
> What if there were a conditional setting markup instead?
> 
> (:property (auth edit) something=value:)

I'm afraid having two syntaxes for different conditional markups
is likely to invite a lot of confusion.  OTOH we might not get much
choice in the matter anytime soon.  I've been racking my brain on
it much of the day, and for the moment it's looking as though
properties will initially have to be page-invariant -- i.e., set 
for an entire page regardless of any conditional markups that may be
present.  :-(

Pm




More information about the pmwiki-users mailing list