Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Direct Tab Links (split from another thread)

Discussion in 'Showcase Support' started by tajhay, Jun 4, 2014.

  1. tajhay

    tajhay Active Member AMS Premium CAS Premium SC Premium Pickem Power Rankings Sportsbook Survivor

    Hi @Bob B,
    All my routes seem to be working fine, except the tabs on the showcase item.

    For example it shows as below:

    I have all the routes mentioned in the earlier post with showcase going to player-profiles:


    Everything works fine except the damn tabs hehe
  2. Bob

    Bob Developer Staff Member

    Showcase only has one frontend route now (named 'showcase'), so you can get rid of the category and member ones as they are not even used. Those other routes were removed several versions ago (back in the 1.x series).

    showcase-category does not exist anymore
    showcase-member does not exist anymore

    As far as I know, Showcase is the only addon released that uses a combination of both Tab Container and Navigation tabs together on a single page (it started out with just tab container and as the addon grew, it required navigation tabs to handle things like associated discussion thread that can't be done via a tab container).

    When viewing an ITEM itself on any of the 5 CONTENT Tabs and the image gallery, those tabs will NOT have a "route" URL as they are using what is called a TAB CONTAINER that switches content pains via javascript (not ajax). When viewing any of the other content pages that belong to an item like the discussion thread, reviews etc (other than the 5 content tabs and the image gallery), they WILL have URLS, cause those tabs are navigation tabs (not tab container links) that actually are sending an HTTP request to the server and the controller renders an new page.

    In other words, there are TWO completely different tabs systems on a given showcase item. Part of them (the 5 content tabs and the image gallery tab) are part of a CONTAINER SYSTEM. the other Tabs are called Navigation tabs cause they are actually taking you to another PAGE. The ONLY time the content tabs have URLS are on the other ITEM pages (like the Thread view, reviews view and those are specially coded to take you to the item page and open the tab).

    Hope I explained that so you understand. I know it can be confusing to people cause all they see is a "tab" and think that all "tabs" do the same thing and that couldn't be further from reality. A Navigation Tab is nothing more than a graphic representation of a LINK. Tab Containers are actually functional in that when you click on a tab, it unhides the content for that tab inside the corresponding tab container and hides the the previous content (basically sets it to display:none).

    In the next MAJOR version of showcase, I am probable going to get rid of the Content Tabs (Tabs 1-5 and the image gallery) and make people use the custom field OWN TAB for creating tabs (and the image gallery will be its own rendered page just like the Reviews Tab for example. Then I won't have to explain the difference between the TWO completely different tab systems that SC Items have (which sucks, cause it IS very powerful and extremely flexible for customization).
  3. Bob

    Bob Developer Staff Member

    btw, if you UPGRADE to the newer version, I've change the links on the tab containers to include the ROUTE (even tho its not even used). You are running an older version before I made that change.
  4. tajhay

    tajhay Active Member AMS Premium CAS Premium SC Premium Pickem Power Rankings Sportsbook Survivor

    yeah mate im running 1.3.1

    Kinda scared of all the stuff that will get wiped out or not work if i do the upgrade right now. As you know we have a few customised things...for example 2013 stats tab etc is a custom addon hooking onto the showcase item. I will prob upgrade to the new version come november/dec as in the middle of the season right now for us.

    So in short the routes dont control why clicking on the tab says www.domain.com/#tab3. These seem to the part of the content tabs as described by you. So without upgrading to a newer version i wont be able to change anything so that i can send a URL to someone and it will redirect to the correct content tab? Apologies for my ignorance, but i thought that 1.3.1 did allow you to do that. Or is it something we may have changed?

    Thanks for the brilliant support again Bob!
  5. Bob

    Bob Developer Staff Member

    Ya, I'd probably wait until the offseason as there are A LOT of changes lol. The URLs for Tab Container's don't even matter, its the ID that counts.. ie, #timages will open the Image Gallery tab. I could hard code xenforo.com into it and they'd still work cause it could care less about the URL, it only reads and uses the ID

    As far as direct links, YES, you CAN (just like I explained in my reply). If on a showcase page that is not rendered as the Tab Container ie, the Thread or the Review (those are actual rendered pages), THOSE have the direct links to go to the showcase page and open the specific TAB. However, once ON that page, the URLS to tabs 1-5 DO NOT MATTER, so they are not even there (in your version). The only thing that matters when viewing the item IN Tab Container mode are the #id's..

    Lets use your site as an example..

    Here is a direct link to a player profile: http://www.nzwarriors.com/player-profiles/jordan-baldwinson.24/
    Here is a DIRECT link to that same profile, but will open to the Image Gallery: http://www.nzwarriors.com/player-profiles/jordan-baldwinson.24/#timages

    You can direct open ANY content tab by appending the ID to the end to the Item URL (as long as the TAB exists)


    I've changed this in the NEWER versions so that even when viewing the Tab Container, the FULL URL displays (even tho its not even functionally used). The URL DOES NOT MATTER and doesn't change how it functions in the least bit.
  6. tajhay

    tajhay Active Member AMS Premium CAS Premium SC Premium Pickem Power Rankings Sportsbook Survivor

    I bet you let out an evil laugh :)

    Not sure if we are confusing each other or not. Yes http://www.nzwarriors.com/player-profiles/jordan-baldwinson.24/#timages works. As does http://www.nzwarriors.com/player-profiles/jordan-baldwinson.24/#tab4 But
    dont ;)

    Is it because i have an unused tab in the middle ie tab3?
  7. Bob

    Bob Developer Staff Member

    That is why I specifically said
    On that particular item, you are only using Tab 1, Tab 3, Tab 4 and the Image Gallery Tab.

    The Tabs ID's are standard in showcase. They are: #tab1, #tab2, #tab3, #tab4, #tab5 (for the 5 content tabs) and #timages (for the Image Gallery Tab).
  8. tajhay

    tajhay Active Member AMS Premium CAS Premium SC Premium Pickem Power Rankings Sportsbook Survivor

    Yes i know. Actually they all work with the links you provided.

    How did you grab the URL of the tab 1 2 3 4 etc? Did you build that manually? I usually right click on the tabs and copy URL and it gives me http://www.nzwarriors.com/#timages, http://www.nzwarriors.com/#tab4 for example etc. As you can see those URLS are unusable.
  9. Bob

    Bob Developer Staff Member

    I've already explained, the version you are using doesn't display the FULL URL on the CONTAINER TABS. I only recently added the full URLs. You have TWO choices. You can either UPGRADE the addon which HAS the full URLs so that you can right click on copy (that is their ONLY purpose as it servers NO functionality what so ever) OR you You can EDIT your item template and add the full URL to the 5 content tabs and the image gallery tab.


    without full URL... you can see that the href only has the #id in it (as that is ALL the tab container needs)
    <li class="scTab1"><a href="#tab1">{$category.tab1_name}</a></li>
    with full URL... you can see that I simply added the xen:link for the item infront of the #id. This will display the direct URL that you can copy/paste (as that is all it would be used for lol)
    <li class="scTab1"><a href="{xen:link showcase, $item}#tab1">{$category.tab1_name}</a></li>
    You will have to do this for the li's for the 5 content tabs and the image gallery tab. The template syntax on the version you are running might look a bit different but you still only need to add the xen:link part to them. If you find it difficult, send me an inbox posting your nflj_showcase_item template and I will edit it for you.
  10. Bob

    Bob Developer Staff Member

    btw, I split this out to its own support thread as it doesn't have anything to do with that sticky thread.
  11. tajhay

    tajhay Active Member AMS Premium CAS Premium SC Premium Pickem Power Rankings Sportsbook Survivor

    Thanks so much Bob!! Yeah thats what i prob needed. I can do this on my own, if i run into trouble ill let you know :)

    Thanks heaps again! Really appreciated! :)
  12. Bob

    Bob Developer Staff Member

    OK.. offer stands tho, if something goes wacky, just send me the template and I will do it for you. :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.