<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 10, 2013 at 11:31 PM, Mark Lee <span dir="ltr"><<a href="mailto:mark.lee.phd@gmail.com" target="_blank">mark.lee.phd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>The next thing I want to do is add this feature to my skin. I have already played around with my skin.tmpl file, but I am not sure how to do this conditional markup.</div>
<div>Specifically:</div><div> 1. If the page is in the Plant group, and the (:plant ... :) markup is used on the page, then include the garden map.</div><div> 2. If I don't use the (:plant ... :) markup, the garden map is not included.</div>
<div>Is this possible?</div></blockquote></div><br></div><div class="gmail_extra">Simply set a global in your (:plant ...:) markup and then check the value of that global before you include the garden map. If you are using (:include ...:) to include your map then the global you will set will be in $FmtPV so that you have access to a page variable. Don't forget your "global" declaration of the variable at the top of the function and see <a href="http://www.pmwiki.org/wiki/PmWiki/OtherVariables">http://www.pmwiki.org/wiki/PmWiki/OtherVariables</a> to see some special notes on quoting for $FmtPV.<br>
<br></div><div class="gmail_extra">(You may have to change the 2nd argument to the Markup() function of your (:plant ... :) markup in order to get it early enough in the process to work. Setting $EnableDiag=1 in config.php and then using ?action=ruleset will enable you to see exactly what order the rules will fire.)<br>
<br></div><div class="gmail_extra">-Peter<br></div></div>