<div dir="ltr">Interesting suggestion.<div><br></div><div>In config.php I only have </div><div><div>## StarterPack: Activate the Toggle recipe. <a href="http://www.pmwiki.org/wiki/Cookbook/Toggle">http://www.pmwiki.org/wiki/Cookbook/Toggle</a></div><div>  $EnablePrintHiddenDivs = 0; # do not print hidden divs</div><div>  include_once("$FarmD/cookbook/toggle.php");</div></div><div>(no showhide or other toggle version).</div><div><br></div><div>A full text search of my cookbook folder shows to toggle (other than toggle.php)</div><div><br></div><div>thanks, investigation confinues</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>____<br><a href="http://kiwiwiki.nz" target="_blank"><font size="1">http://kiwiwiki.nz</font></a></div></div></div></div>
<br><div class="gmail_quote">On 31 October 2017 at 20:38, Chuck Goldstein <span dir="ltr"><<a href="mailto:cgpmw13@codingmaniac.com" target="_blank">cgpmw13@codingmaniac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 10/30/2017 04:46, Simon wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="http://ttc.org.nz/pmwiki/pmwiki.php/TTC/Search" rel="noreferrer" target="_blank">http://ttc.org.nz/pmwiki/pmwik<wbr>i.php/TTC/Search</a><br>
<br>
I'm seeing different behaviour from Toggle.<br>
<br>
Specifically I have<br>
(:toggle id="searchhelp" init=hide button=1 show="Show search help"<br>
hide="Hide search help" set=1:)<br>
but the initial state is not hidden, and neither does the state stay<br>
remembered.<br>
I'm using version 2017-08-24<br>
<br>
thanks<br>
<br>
Simon<br>
</blockquote>
<br></div></div>
You are not running the PmWiki Cookbook version of Toggle on that page. Instead, you are running a very basic Toggle.<br>
<br>
Perhaps something in your config.php file or another recipe included before toggle.php is setting the (:toggle ...:) markup.<br>
<br>
You can try rearranging your recipe includes, or you could add the Toggle markup under a different name and use that name in your page. To do that, add to your config.php file:<br>
<br>
Markup('togpmw', 'directives', '/\\(:togpmw\\s*(.*?):\\)/i', "ToggleMarkup");<br>
<br>
and change the page's toggle call to<br>
<br>
(:togpmw id="searchhelp" . . . etc. :)<br>
<br>
<br>
Chuck G.<br>
<br>
</blockquote></div><br></div>