[PHPTAL] Custom modifiers

Guillaume Lecanu Guillaume at lya.fr
Wed May 20 17:44:04 CEST 2009


Hi,

There is a solution inside the function of the custom modifier to get
the default text that will be replaced ?

For example, in :

<span tal:content="mymodifier: newText" class="important">Hello
World</span>

Inside my phptal_tales_mymodifier() function, I want to get "Hello
World".


Another example :

<img src="#" title="Hello World" tal:attributes="title mymodifier:
newText" />

I want to get "Hello World".


Thanks for your help !




-------------- section suivante --------------
Une pièce jointe HTML a été enlevée...
URL: http://lists.motion-twin.com/pipermail/phptal/attachments/20090520/6a0ebd4c/attachment.htm


More information about the PHPTAL mailing list