[pmwiki-users] PageList vs WikiForm for multi-line variables

Peter Bowers pbowers at pobox.com
Mon Oct 5 13:16:19 CDT 2015


On Mon, Oct 5, 2015 at 5:32 PM, Thierry <pmwiki at lma.metelu.net> wrote:

> Now, another problem appears, i write something depending on whether the
> "Abstract" field is empty or not, so i have some condition such as
>
> (:if ! equal "" "{=$:Abstract}":)
>
> It seems that the condition can not be multiline, so all of this is boken.
> I tried to just count the length with "{(strlen "{=$:Abstract}")}", but it
> also fails. Any idea ?
>

Create a markup expression (  {(ptv1line $:Abstract)} ) or simply a markup
(:Abstract_first_line:) which uses the former definition thus returning
only a single line.

-Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20151005/6d76131f/attachment.html>


More information about the pmwiki-users mailing list