(tal, metal) macro template id
4 Oct
2002
4 Oct
'02
4:07 p.m.
Hi all, Inside the template where macros are defined, I need to get its id, i.e: <span metal:define-macro="kk"> Showing: <b tal:content="template/getId"> conextual! </b> contents, rendered inside page <b tal:content="thisMACROpage/getId"> fixed / ??? </b> </span> Any hint? Thanks in advance, Pablo
4 Oct
4 Oct
9:04 p.m.
New subject: [Zope] Re: (tal, metal) macro template id
Pablo Ziliani wrote:
Inside the template where macros are defined, I need to get its id
This is not possible with the current implementation, except by doing an ugly cut & paste define in the using template: <div tal:define="macro_t here/blah"> <div metal:use-macro="here/blah/macros/foo"> ... <span tal:replace="macro_t/id | template/id">ID</span> ... </div> </div> Sorry, Evan @ 4-am
8585
Age (days ago)
8585
Last active (days ago)
1 comments
2 participants
participants (2)
-
Evan Simpson -
Pablo Ziliani