Re: #navigation options

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: #navigation options

Ted Vinke
Hi,

Another question: I'd like to have a class on the a-element while using
the #navigation() macro, to accomplish class="subMenuItem" e.g.

<li><a href="#" class="subMenuItem">submenuitem</a></li>
<li><a href="#" class="subMenuItem lastSubMenuItem">Last item</a></li>

Is that possible?

Another outstanding issue is the part where an underscore is appended to
the currentlevel (without the actual level itself) which Maria was about
to investigate for exactly one level e.g.

<a class="lastItem_" ....

Any news on that? Or should I add that as a bug somewhere?

Regards, Ted


Ted Vinke wrote:

>
>
> Hi!
>
> After having read the Velocity Cheatsheet I've questions aboput the
> following code I have to generate only the (2nd-level) subnavigation:
>
> #set($firstItemClass = "firstItem")
> #set($lastItemClass = "lastItem")
> #navigation(2 2)
>
> This generates:
>
> <ul>
> <li><a class="firstItem_" href="/whoarewe/news.dot">News</a></li>
> <li><a href="/whoarewe/management.dot">Management</a></li>
> <li><a class="lastItem_" href="/whoarewe/guests.dot">Guests</a></li>
> </ul>
>
> My questions:
> - Our layoutdesigners rather have the class="lastItem_" part on the <li>
> instead of the <a> for easier CSS use. Is this possible without altering
> the code?
> - The Cheat Sheet says it will also print out the class level, hence the
> underscore at the end (firstItem_) but shouldn't it be firstItem_0 or
> firstItem_1 then?
> - Right now when I only output one level, by #navigation(2 2), this
> looks a bit weird, just an underscore. Is it possible to just have
> class="firstItem" inserted, without the underscore?
>
> Regards,
> Ted
>
>



dotCMS: Opensource CMS goodness.
http://www.dotcms.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/dotcms/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/dotcms/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[hidden email]
    mailto:[hidden email]

<*> To unsubscribe from this group, send an email to:
    [hidden email]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 
Reply | Threaded
Open this post in threaded view
|

Re: #navigation options

Maria Ahues Bouza
Ted,

Anything that is not documented for the #navigation() macro would need to be
done as a customization. Right now we provide what we have on the
documentation.

I haven't checked the issue you mentioned with the navigation and one level,
if you want you can definitely submit a bug in JIRA.

http://jira.dotmarketing.net

Thanks
Maria

On 1/28/08, Ted Vinke <[hidden email]> wrote:

>
>   Hi,
>
> Another question: I'd like to have a class on the a-element while using
> the #navigation() macro, to accomplish class="subMenuItem" e.g.
>
> <li><a href="#" class="subMenuItem">submenuitem</a></li>
> <li><a href="#" class="subMenuItem lastSubMenuItem">Last item</a></li>
>
> Is that possible?
>
> Another outstanding issue is the part where an underscore is appended to
> the currentlevel (without the actual level itself) which Maria was about
> to investigate for exactly one level e.g.
>
> <a class="lastItem_" ....
>
> Any news on that? Or should I add that as a bug somewhere?
>
> Regards, Ted
>
>
> Ted Vinke wrote:
> >
> >
> > Hi!
> >
> > After having read the Velocity Cheatsheet I've questions aboput the
> > following code I have to generate only the (2nd-level) subnavigation:
> >
> > #set($firstItemClass = "firstItem")
> > #set($lastItemClass = "lastItem")
> > #navigation(2 2)
> >
> > This generates:
> >
> > <ul>
> > <li><a class="firstItem_" href="/whoarewe/news.dot">News</a></li>
> > <li><a href="/whoarewe/management.dot">Management</a></li>
> > <li><a class="lastItem_" href="/whoarewe/guests.dot">Guests</a></li>
> > </ul>
> >
> > My questions:
> > - Our layoutdesigners rather have the class="lastItem_" part on the <li>
> > instead of the <a> for easier CSS use. Is this possible without altering
> > the code?
> > - The Cheat Sheet says it will also print out the class level, hence the
> > underscore at the end (firstItem_) but shouldn't it be firstItem_0 or
> > firstItem_1 then?
> > - Right now when I only output one level, by #navigation(2 2), this
> > looks a bit weird, just an underscore. Is it possible to just have
> > class="firstItem" inserted, without the underscore?
> >
> > Regards,
> > Ted
> >
> >
>
>  
>



--
Maria Ahues Bouza
Project Manager, dotCMS Services & Support

www.dotmarketing.com
www.dotcms.org
T: 305.858.1422 x (9) 272
D: 786.594.5272
F: 786.594.5288