1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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.

Implemented Change default Sort Order for Grid and List View Tabs.

Discussion in 'Showcase Closed Suggestions' started by kezako, Dec 18, 2013.

  1. kezako

    kezako New Member Showcase

    Hello

    I want to set alphabetical tab active by default and in first in nflj_showcase_index_grid template

    Here's my code :

    Code:
    <li{xen:if "{$sortOrder} == 'atoz'", ' class="active"'}>
          <a href="{xen:link showcase, '', 'order=atoz', 'direction=asc'}">{xen:phrase nflj_showcase_tab_alphabetical}</a>
        </li>
        <li{xen:if "{$sortOrder} == 'recent'", ' class="active"'}>
          <a href="{xen:link showcase, '', 'order=recent'}">{xen:phrase nflj_showcase_tab_most_recent}</a>
        </li>
        <li{xen:if "{$sortOrder} == 'rated'", ' class="active"'}>
          <a href="{xen:link showcase, '', 'order=rated'}">{xen:phrase nflj_showcase_tab_top_rated}</a>
        </li>
        <li{xen:if "{$sortOrder} == 'popular'", ' class="active"'}>
          <a href="{xen:link showcase, '', 'order=popular'}">{xen:phrase nflj_showcase_tab_most_popular}</a>
        </li>
        <li{xen:if "{$sortOrder} == 'updated'", ' class="active"'}>
          <a href="{xen:link showcase, '', 'order=updated'}">{xen:phrase nflj_showcase_tab_latest_updates}</a>
        </li> 
    I do something wrong because alphabetical tabs is not active but i don't find what. Need help :)
     
  2. Bob

    Bob Developer Staff Member

    It is not something you can do via a template edit. It requires code modification.
     
  3. Bob

    Bob Developer Staff Member

    Im pretty sure that someone requested this. Take a quick look through the suggestions and if you can find it, feel free to start a suggestion thread for it.

    EDIT: Was suggested for Sportsbook and not for Showcase. I've moved this into the suggestions forum.
     
    Last edited: Dec 18, 2013
  4. Bob

    Bob Developer Staff Member

    btw, I've modified the TITLE of the thread to match the functionality request.
     
    Last edited: Dec 18, 2013
  5. Bob

    Bob Developer Staff Member

    This is now implemented for both Grid and List views

    You can now set the default tab for the Showcase Home Page
    You can now set the default tab for the Showcase Category Pages (global setting, not per category)
    You can now set the default tab for the Showcase Member Pages (global setting, not per member)

    example screenshot of the Home Page settings to show the new "Default Sort Order Tab" setting.

    Selection_009.png


    As you can see, the URL is default (without any param's) and its defaulting to Alphabetical instead of recent (as shown in the above setting).
    Selection_010.png

    As far as the ORDER of the tabs, if you want to change that, you will need to make a simple template edit to the LAYOUT(s) and PAGE(s) (each Layout & Page has its own "tab" code). You can arrange the tabs in any order you want :)
     
    Veer, kezako and BT012SS like this.
  6. kezako

    kezako New Member Showcase

    Thank you very very much !!
    I will update immediatly
     
  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.