<div class="gmail_quote">2009/11/1 Hans <span dir="ltr"><<a href="mailto:design5@softflow.co.uk">design5@softflow.co.uk</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
</div>
</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">But why don't you use simple PageTextVariables, like<br>
</div>
</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
(:latitude: 50.1234:)<br>
(:longitude: -1.23456:)<br>
<br>
and use {$:latitude} and {$:longitude} in your<br>
$FeedFmt['georss']['item'] array?<br>
</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Why do you want to use PageVariables?<br></blockquote><div><br>
Hans, thanks for looking at this and questioning. To be honest I'm not
sure the difference between PTV's and PV's. The way I first approached
this was to look at how the extant (:summary:) markup worked and copied
how that was integrated into the system. Now I know the $:variable
syntax I'll see if I can simplify the FeedFmt line.<br><br>The other reason was that I'm using a database backend to store my wiki pages and storing selected page variables e.g. summary and now lat/lng, as columns within the table for fast access without processing each page. I'm starting with the very good SQLite recipe and found I need the 'page variable thing' to get the extra data (lat/lng) to store - not sure why. FYI - I'm porting the SQLite recipe to support MySQL so I can save a stored procedure to very quickly find Wiki pages within a specified radius from a specific location. This is similar to the way geonames 'findNearestPlacename' works (ref. <a href="http://www.geonames.org">http://www.geonames.org</a>) .<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
And if you need to use PageVariables, why the change to use a<br>
(:coord..:) markup instead of two markups for latitude and longitude?<br>
If you have a single coord markup there may be possible confusion<br>
of what arg comes first: lat or long.<br>
<font color="#888888"><br>
~Hans<br></font></blockquote><div><br>Agreed that two markups might make more sense. My rationale was to imitate the Wikipedia markup just in case users were used to that. Ref. <a href="http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Geographical_coordinates">http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Geographical_coordinates</a><br>
<br>I'm sitting on the fence as to what to go with...<br></div></div>