[pmwiki-users] markupexprplus not working

Thomas Hirtenlehner thomas.hirtenlehner at tielor.at
Mon May 8 07:38:21 PDT 2023


Hi Dominique!

Thank you very much! That solved the problem!

best regards
Thomas

On 08.05.2023 11:24, Dominique Faure wrote:
> Hi,
>
>> to test out markupexprplus I tried this markup in the group header:
>>
>> {(setq {$Name} 1)}
>> (:notitle:)
>>
>> which should produce no text on the page, but I do get this text:
>>
>> (setq GroupHeader 1)
> The variable manipulation is an optional feature of MarkupExprPlus
> which should be explicitly enabled in your config file with the
> related configuration flag, such as:
>
> $EnableExprVarManip = 1;
> include_once("$FarmD/cookbook/markupexprplus.php");
>
> In order to know which variable to work with, the setq markup require
> its name specification, such as:
>
> {(setq Name 1)}
>
> It should also be noticed that modifying the value of PmWiki's default
> page variables, like "{$Name}", could lead to unpredictable results.
>
> If the goal is to handle a variable named according to the current
> page context, then the {(pagevar ...)} markup should be helpful for
> that and I have modified the cookbook recipe page with another
> example.
>
> Regards,
> Dominique




More information about the pmwiki-users mailing list