[pmwiki-users] conditional markup "empty variables" or length=0 -solved
lists at basel-inside.ch
lists at basel-inside.ch
Mon Jan 27 06:13:45 CST 2014
It was hard to see in the editform: I had a wrong bracket, which was
too much /{*$Trail}) /.
So everything works as expected.
It's a usefull thing these conditions
thanks!
regards
Patrick Ogay
Zitat von lists at basel-inside.ch:
> Good morning!
>
> I tried to avoid a problematic link in a pagelist template via:
>
> ==>|| (:if2 equal "{*$Trail}) " "
> ":)[[{>$FullName}?Trail={*$Trail}|$[next]]][[{>$FullName}?Trail={*$Trail}|>]](:if2end:)Trail=-{*$Trail}
> -||
>
> (whole pagelisttemplate at bottom of post)
>
> The results are the same:
> http://orientalcarpetstudio.com.jovinus-meta.net/Carpet/10005?Trail=Category.Gross
> http://orientalcarpetstudio.com.jovinus-meta.net/Carpet/10005?Trail=
>
> the variable seems to be as expected (right on the line with next and Prev).
> I tried several ways to compare, until now something seems to be not correct.
>
> Can anybody help me to correct the condition above?
>
> thanks in advance
> regards
> Patrick Ogay
>
> Template in Site/LocalTemplates
>
> !!#prnxontrail
> [[#prnxontrail]]
> (:if equal {*$FullName} {=$FullName}:)
> ||table border=0 align=left width=500
> ||[[{<$FullName}?Trail={*$Trail}|<]][[{<$FullName}?Trail={*$Trail}|$[back]]]
> || || (:if2 equal "{*$Trail}) " "
> ":)[[{>$FullName}?Trail={*$Trail}|$[next]]][[{>$FullName}?Trail={*$Trail}|>]](:if2end:)Trail=-{*$Trail}
> -||
> [[<<]]
> (:ifend:)
> [[#prnxontrailend]]
>
>
>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
More information about the pmwiki-users
mailing list