• REGISTRATION REQUIREMENTS:

    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.

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

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 :)
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
It is not something you can do via a template edit. It requires code modification.
 
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:
btw, I've modified the TITLE of the thread to match the functionality request.
 
Last edited:
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 :)
 
Back
Top