>-----Oorspronkelijk bericht-----
>Van: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Michiel Meeuwissen
>Verzonden: donderdag 6 maart 2003 12:52
>Aan: [EMAIL PROTECTED]
>Onderwerp: Re: <mm:time>?
>
>
>[EMAIL PROTECTED] wrote:
>> names can only be registered once in the context.
>> Removing it before registering a new one should work
>>
>> <mm:list nodes="<%= nr %>" path="t_page,posrel,t_episode"
>> orderby="posrel.pos">
>> <mm:remove referid="lTimeddate"/>
>> <mm:field name="t_episode.ddate" id="lTimeddate"><mm:time format="d MMMM
>> yyyy - hh:mm" referid="lTimeddate" /></mm:field><br>
>> </mm:list>
>
>It is nicer to give the 'name' a scope with 'mm:context", or
>simply avoid it:
>
>
><mm:list nodes="$number" path="t_page,posrel,t_episode"
>orderby="posrel.pos">
>  <mm:field name="t_episode.ddate"><mm:time format="d MMMM  yyyy -
>hh:mm" /></mm:field>
></mm:list>
>


as a side note, the 'body' way Michiel shows here works on alot of tags, its
very usefull in keeping
your pages clean. a second example i use it alot for is in the compare tag :

<mm:field name="state">
        <mm:compare value="1">
                Wow the state is one, means we will live
        </mm:compare>
        <mm:compare value="2">
                We are all doomed, run run run
        </mm:compare>
</mm:field>

Daniel.


Reply via email to