Re: [PHPTAL] Duplcate/repeated macros

2010-03-07 Thread Kornel Lesiński
On 07.03.2010, at 15:44, Rowan @ Jetboy wrote: A very simple example. If I have a macro with a slot: div metal:define-macro=page div metal:define-slot=slot/div /div and another macro: div metal:define-macro=box div tal:content=heading/div /div

[PHPTAL] Conditional slot containing element/s

2010-03-07 Thread Rowan @ Jetboy
If I have a containing 'wrapper' element to a slot definition: div class=wrapper tal:block metal:define-slot=content / /div how can I show or hide 'wrapper' dependent on whether the slot's filled? Slot filled: div class=wrapper pcontent/p

Re: [PHPTAL] Conditional slot containing element/s

2010-03-07 Thread Kornel Lesiński
On 07.03.2010, at 18:42, Rowan @ Jetboy wrote: If I have a containing 'wrapper' element to a slot definition: div class=wrapper tal:block metal:define-slot=content / /div how can I show or hide 'wrapper' dependent on whether the slot's filled? Slot filled: