[pmwiki-users] Setting Page Variables

David david at ellendee.co.uk
Wed Jul 30 00:21:14 CDT 2008


The reason? - Something I'm toyong with. Page variables can be conditionally
concatenated PTVs can't

-----Original Message-----
From: Hans [mailto:design5 at softflow.co.uk] 
Sent: 29 July 2008 16:46
To: Dave Cooke
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Setting Page Variables

Tuesday, July 29, 2008, 2:49:15 PM, Dave Cooke wrote:

> Is it possible to set a page variable $FmtPV['$PV']to the value of a PTV?

sure, but why?

# setting PV {$Test} to PTV 'Test'
$FmtPV['$Test'] = PageTextVar($pagename, 'Test');

why would you prefer use of {$Test} over {$:Test} ?

There is also one limitation I believe:
you can use multi-line PTVs, but only single-line PVs


  ~Hans


No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.5.6/1579 - Release Date: 29/07/2008
06:43





More information about the pmwiki-users mailing list