hi will

ok - that would be a possible solution. i thought about it -  in the 
customAttribute i would like to place a reference to a background image, which 
is changing dependend on the navigation item, when you have the mouse over it. 
i could do that in the class attribute, but is that really nice from a 
programmers point of view? 

therefore i thought about an iteration over the website repository but could 
not find any solution. i thought, that this is a better way - and maybe 
interesting for other magnolians as well.

regards
tobias






Am 15.08.2010 um 22:18 schrieb Will Scheidegger:

> Hi Tobias 
> 
> I did see that see that in your code, but I still don't see where this is 
> leading to... What will the JavaScript do with it? Would it be possible to 
> "store" that value in a class name and have your JavaScript read it from 
> there?
> 
> -will
> 
> On 15.08.2010, at 17:06, vollprecht gestaltung wrote:
> 
>> 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]>
>> ----------------------------------------------------------------
> 
> 
> 
> ----------------------------------------------------------------
> 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