DMXzone Bootstrap 3 Navigation Support Product Page

Answered

Navigation include file for automatic active links

9 years ago David Woolley posted:
Suggestion: It would be great to be able to put the navigation in a separate include file that automatically highlights the Active page in the menu. Currently it's quite a lot of work to set the active page link for each page. One of your competitors has implemented this, so it's a breeze to add the navigation to each page, without having to set the active link.
Dave

Replies

Replied 9 years ago
9 years ago Teodor Kuduschiev replied:
Well, actually the DMXzone Bootstrap 3 navigation automatically highlights the active link. You do not have to "mark" it active for each page...
Also you can cut the navigation code and paste it into an include file, which you can include on your pages.
Replied 9 years ago
9 years ago David Woolley replied:
Yes I know it highlights the active link, but one does have to intervene and set the active link for each page individually. I'm suggesting that this should be fully automatic, so that one creates the navbar without setting any active links, then the script automatically selects the page link to be active.
The menus supplied by Project Seven do this.

The manual says: 'Check active to indicate the current page'
Am I missing something here?
Dave
Replied 9 years ago
9 years ago Teodor Kuduschiev replied:
No, this statement is not right: "but one does have to intervene and set the active link for each page individually."
If your menu item points to index.html and you open the index.html page in the browser, the menu script automatically highlights the menu item.
Replied 9 years ago
9 years ago David Woolley replied:
Oh yes - I see now. I've removed all the
li class="active"

from the navbar that I had set, and the pages are highlighting the active links.
Just what I want - so much easier.

So why do you have an 'Active' checkbox under Navbar item then?
Thanks
Dave

Reply to this topic