[pmwiki-users] Include other pages with variables

Simon nzskiwi at gmail.com
Sat Nov 14 13:45:51 CST 2009


I have created a PITS
http://www.pmwiki.org/wiki/PITS/01152<http://www.pmwiki.org/wiki/PITS/01152?action=edit>


See also PITS
http://www.pmwiki.org/wiki/PITS/01136

2009/11/14 DaveG <pmwiki at solidgone.com>

>
> On 11/13/2009 2:10 AM, Simon wrote:
>
>> PS My use case is
>> (:if equal "{$$File}" "":)Photo(:else:){(ucfirst "{$$File}")}(:ifend:)
>>
> This also happens with other types of variable. I ended up creating a
> function to test, and calling with a conditional markup:
> $Conditions['bi_isnull'] = 'bi_IsNull($condparm)==""';
> function bi_IsNull($e){
>  return (!empty($e) && substr($e,0,3)!='{*$' && substr($e,0,2)!='{$' &&
> substr($e,0,3)!='{=$' ?$e :'');
> }
>
> Called with:
>  (:if bi_IsNull {$$File}:)Photo(:else:){(ucfirst "{$$File}")}(:ifend:)
>
>
>  ~ ~ Dave
>



-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20091115/5fc3c531/attachment.html 


More information about the pmwiki-users mailing list