1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating Tabs

Discussion in 'XenForo Questions and Support' started by DaveL, Aug 17, 2011.

  1. DaveL

    DaveL Well-Known Member

    Ive created quite a few pages and want to display them in the navbar similar to the current set up.

    Ive searched the forum and found quite a lot of examples, but they all seem to complicated! One I did find that looked pretty simple I couldnt get to work because it wasnt very detailed! http://xenforo.com/community/threads/how-to-adding-tabs-to-your-pages.7145/

    Im looking to have it so when you click on the link in the navbar, it shows the options available underneath, like the current setup. Can anyone point me in the direction of the best and easiest way to do this please :)

    Also, Ive created a page which Ive called home and got it set so when you click on the logo or the home button it takes you there, however the home button dosent get highlighted and it remains on the forum tab. Any idea how I can resolve this?

    Thanks in advance

    Dave
     
  2. James

    James Well-Known Member

    DaveL likes this.
  3. DaveL

    DaveL Well-Known Member

    Thanks James.

    Is that really the easiest way of doing it? Ive got to convert over 100 pages and really dont want to have to do that 100 times!

    Im not too fussed about it showing up in the breadcrumbs or anything, just some html to add to the navigation tab would be great if anyone can help.

    Must admit its a bit dissapointing to have a greate pages feature let down by the lack of built in tab intergration.
     
  4. James

    James Well-Known Member

    You can't add the secondary menus via template edits.
     
    DaveL likes this.
  5. DaveL

    DaveL Well-Known Member

    Thanks again for your reply James. I think im getting the hang of it now, however ive got a problem!

    Ive managed to create a new tab with subtabs :)

    If you view this page, it acts like I want it too. However, If you click on any of the image links, the tab reverts back to "Forum" being highlighted and the breadcrumb changes.

    I dont want to create a sub link for each presenter, as ive got other links to fill up the subnav bar with and plus it would look crowded and pointless considering their all on that main page!

    Any help really really appreciated! I thought I had it nailed until I came across this problem!
     
  6. James

    James Well-Known Member

    That's because pages by default change the $selectedTabId to forums. There is an add-on here that changes that if I recall correctly.
     
  7. James

    James Well-Known Member

  8. DaveL

    DaveL Well-Known Member

    Thanks James. I was using the first link to make the tabs, Ive had another read and found a way around it!

    Thanks again for your help :)
     
  9. Morgain

    Morgain Well-Known Member

    Dave you can now do pages as tabs with Jake Bunce's nodes as tabs add-on.
     

Share This Page