hi will

as you see in the example below, i would like to extend the <li> tag with a 
custom attribute (which i need for a javascript). i could not figure out, how 
to do that with the simpleNavigation. 

<li customAttribute="${attr}"><a href="${ref}">${pageTitle}></a></li>

is there a way to put something in the wrapper attribute like "li 
customAttribute='${var}'" ?

thanks!

regards
tobias



Am 15.08.2010 um 14:49 schrieb Will Scheidegger:

> 
> Are you absolutely sure you need a custom navigation? What do you intend to 
> do? Color scheme fore each main branch? The "simpleNavigation" is not as 
> simple as it may seem, it's quite powerful. Have a look at 
> http://dev.magnolia-cms.com/ref/4.3.5/magnolia-taglib-utility/tagreference.html#simpleNavigation
>  and tell us what you're goal is. Chances are that you can get there without 
> building a custom navigation...
> 
> -will
> 
> On 15.08.2010, at 14:40, vollprecht gestaltung wrote:
> 
>> 
>> hello list
>> 
>> i want to write a custom navigation and have therefore to iterate through 
>> the website repository to get all page nodes. 
>> it is surely a beginners question, but i could not find any hint on the wiki 
>> or at the documentation.
>> 
>> - i tried <cms:pageIterator>, but this works only for the homepage and not 
>> for subpages; i need to start everytime from the root level.
>> 
>> - i also tried <cms:query>, but could not find out the appropriate query 
>> string.
>> 
>> in the end i would like to get something like:
>> 
>> <ul>
>>      Iterator
>>              <li customAttribute="${attr}"><a 
>> href="${ref}">${pageTitle}></a></li>
>>      Iterator
>> </ul>
>> 
>> where i can set the vars dependend on contentNodes of each page. 
>> 
>> thanks for any help
>> tobias
>> 
>> 
>> 
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
>> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 

--------------------------------
vollprecht gestaltung
gerbergasse 30
postfach
4001 basel
telefon 078 836 03 93
[email protected]
www.vollprecht.com


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to