Is there a way to change the ID attribute of the navigation template tag?

Kyle Fox's Avatar

Kyle Fox

16 Oct, 2010 06:27 PM via web

From what I can tell there's no way to change the ID attribute of the {% nav site.navigation %} template tag.

I would like to have a menu in my site footer, in addition to the header -- but as is, the nav template tag produces two <ul> tags with the same id.

Is there a way to specify an ID for the nav tag, without me manually having to construct the menu?

(As an aside, my preference is for template tags and such to not assume a default ID.)

  1. 2 Posted by John Nunemaker on 17 Oct, 2010 09:54 PM

    John Nunemaker's Avatar

    Just pass id. See
    http://docs.harmonyapp.com/harmony-templates/template-tags/#object-nav.

    {% nav site.navigation, id:'nav-sec' %}

    On Sat, Oct 16, 2010 at 2:29 PM, Kyle Fox <
    ***@tenderapp.com<tender%***@tenderapp.com>
    > wrote:

  2. 3 Posted by Kyle Fox on 18 Oct, 2010 02:36 AM

    Kyle Fox's Avatar

    My bad -- I must have missed that. Thanks!

  3. Kyle Fox closed this discussion on 18 Oct, 2010 02:36 AM.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

17 May, 2012 10:45 PM
20 Mar, 2012 05:05 PM
26 Apr, 2012 01:40 AM
07 Mar, 2012 04:42 PM