<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Thanks Petko, that was it, I had not refreshed the configuration form and had changed the length of the field names.<div>(and yes I was confused about PmForm because I had just been looking at it for another purpose)<br><div><br></div><div>On the topic of </div></div><div>$conf = extGetConfig($MyDefaultValues);<br></div><div><br></div><div>I believe that $conf should only make visible to the recipes values that are related to the recipe itself (i.e. all other recipe variables should not be visible)</div><div>I am starting to understand this include:</div><div>* calculated variables for the current page (from recipe's form)</div><div>* saved config variables (from recipe's form)</div><div>* x variables for the recipe (e.g. xAction)</div><div>* = variables for the recipe (e.g. =url)</div><div><br></div><div>Some feedback - i find the access to the configuration variable the most confusing part.</div><div>For example what is it with the [0] part of $conf['=conf'][0] ?</div><div><br></div><div>Its probably too late to change things, but perhaps something like this would be clearer </div><div>$conf = extGetConfig($MyDefaultValues); # returns the following arrays:<br></div><div> $conf['=']['VarName'] ; #<br></div><div> $conf['x']['Varname'] ; #<br></div><div> $conf['f']['FieldName'] ; # form configuration values for current page<br></div><div> $conf['sc']['FieldName'] ;# saved form configuration values as entered on Extension hub<br></div><div><br></div><div>Also, please consider making the "<span style="color:rgb(0,0,0);font-size:14.4px">Applies to pages:" text box</span> two or three times wider, or deeper by allowing it to have multiple lines (so a list of pages can extend over several lines)</div><div><br></div><div>thanks very much</div><div><br></div><div>Simon</div><div><br></div><div>PS I can't wait for ExtensionHub to be included in the PmWiki releases</div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 13 Aug 2024 at 00:47, Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 12/08/2024 14:04, Simon wrote:<br>
> I'm scratching at straws here, is it possible that PmForm truncates<br>
> the name token from the input tag<br>
> e.g.<br>
> <input type="checkbox" name="enableSRTBL" value="true"<br>
> id="enableSRTBLShow"><br>
> <br>
> is returned (thru ExtensionHub) as<br>
> $conf ['=conf'][0]['enableSRTB']<br>
> (note the last character is truncated)?<br>
<br>
<br>
Um, ExtensionHub doesn't use PmForm.<br>
<br>
ExtensionHub shouldn't truncate the field names. However, while working <br>
on an extension, if you modify a field name, and a value with a <br>
different name was previously saved, the old value will appear in $conf.<br>
<br>
In such a case, just repost the configuration form, and the old value <br>
will be cleared.<br>
<br>
BTW note the difference between $conf['FieldName'] and <br>
$conf['=conf'][0]['FieldName']. The former is the one calculated for the <br>
current page; the latter is one of the saved configurations.<br>
<br>
Petko<br>
</blockquote></div>