Thank for your suggestions and help.<div>The variable $title is calculated from the contents processed within the ChordPro markup, </div><div>and I want to make the value held in $title available in for use outside the ChordPro markup, eg in pagelists etc.</div>
<div>I have added the global declaration to my function. (in front of the lines shown in my example).</div><div>I&#39;m still not seeing a page variable.</div><div>Do I have to tell PmWiki to &#39;update and save&#39; the page?<br>
thanks again</div><div><br></div><div>Simon</div><div><br><div class="gmail_quote">2009/9/27 Peter Bowers <span dir="ltr">&lt;<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sat, Sep 26, 2009 at 10:24 AM, Simon &lt;<a href="mailto:nzskiwi@gmail.com">nzskiwi@gmail.com</a>&gt; wrote:<br>
&gt; I have set up some page variables<br>
&gt;   $FmtPV[&#39;$ChordProVersion&#39;] = $RecipeInfo[&#39;ChordPro&#39;][&#39;Version&#39;];<br>
&gt;   $FmtPV[&#39;$SongTitle&#39;] = $title;<br>
&gt; I did this in the function (Chord_Parse) that is called by the Markup<br>
&gt; function.<br>
&gt; The variables don&#39;t show up on the page, do I need to make something global?<br>
<br>
</div>Although there may be reason to do this assignment to $FmtPV within a<br>
function called by markup ... it would be fairly complicated and you<br>
would have to carefully judge the order of rules and when the PV was<br>
going to be used and etc.  (And by all means $FmtPV would have to be<br>
declared global in your function.)<br>
<br>
Typically, however, you would initialize $FmtPV outside of any<br>
function so that its value is available from then on.<br>
<br>
This is in addition to the necessary changes suggested by DaveG.<br>
<font color="#888888"><br>
-Peter<br>
</font></blockquote></div><br><br clear="all"><br><br>
</div>