[PHPTAL] tal:condition and element contents

Christoph Frick frick at sc-networks.com
Fri Feb 29 11:46:33 CET 2008


On Fri, Feb 29, 2008 at 10:37:17AM -0000, Nick Pack wrote:

> Thanks for your response Richard, doesn't look like it does accept an
> arguement,
> 
> I tried the below and it resulted in an exception, with the message:
> 
> 'PHPTAL_Dom_Parser error: Unexpected 'â' character, expecting
> attribute single or double quote

dont copy-n-paste his quote; write it properly. he put some fancy msword
quotes around it (or his MUA did it for him). afaik omit-tag does _not_
allow a check - at least it does not in ZPT. use a macro instead:

<metal:macro metal:define-macro="somethign" />
<tal:if tal:conditionn="isAdmin">
<form>
<metal:macro metal:use-macro="somethign"/>
</form>
</tal:if>
<metal:macro metal:use-macro="somethign"/>

-- 
cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/phptal/attachments/20080229/dcf6cd03/attachment.pgp


More information about the PHPTAL mailing list