[pmwiki-users] Page Variables help - how to take one and split into two

stevecrisp at gmail.com stevecrisp at gmail.com
Sun Nov 1 16:33:22 CST 2009


2009/11/1 Eemeli Aro <eemeli at gmail.com>

>
> Not sure, but these might work:
>
> $FmtPV['$Latitude'] = 'trim(reset(explode(',', @$FmtPV["\$Coord"])))';
> $FmtPV['$Longitude'] = 'trim(end(explode(',', @$FmtPV["\$Coord"])))';
>
>
Eemeli, thanks for the suggestion.  I'll have a play with that.


> I think it's due to the GeoRSS feed generation, which is done using
> the default feeds.php, which passes stuff through FmtPageName to parse
> page variables, which in turn won't parse page text variables. Of
> course the data could be stored as PTVs, with some kind of parallel
> interface for accessing their values via PVs, but that's liable to
> cause about as much work and confusion as the current (:directive:)
> method. This is guess, mind.
>

I think you understand this better than me!  I wish I knew of a simpler way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20091101/8ee0f336/attachment-0001.html 


More information about the pmwiki-users mailing list