OS Property support center

SOLVED !!! OS content slider - change Sort by

More
9 years 11 months ago - 9 years 11 months ago #63413 by Igor
Dear team,
I need to manage order of featured properties in OS content slider Module Version 1.0 (mod_os_contentslider).
I am thinking, the best way for me it could be Sorting by #Ref number of property. Is it possible to add to: OS content slider Module -> Source Setting -> Articles Sorted By: (#REF-asc and #REF-desc) ?

What are the possibilities to do this?

Thank you for your time.
Last edit: 9 years 11 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #63420 by Mr. Dam
Replied by Mr. Dam on topic OS content slider - change Sort by
Hi Igor,
It's possible to add the parameter to sort properties by REF field, please follow these steps
1. Open file:
root > modules > mod_os_contentslider > mod_os_contentslider.xml
find
Code:
<field name="ordering" type="list" default="created-asc" label="ARTCILES_SORTED_BY" description="ARTCILES_SORTED_BY_DESC"> <option value="id-asc">ID_ASCENDING</option> <option value="id-desc">ID_DESCENDING</option> <option value="ordering-asc">ORDERING_ASCENDING</option> <option value="ordering-desc">ORDERING_DESCENDING</option> <option value="hits-asc">HIT_ASCENDING</option> <option value="hits-desc">HIT_DESCENDING</option> <option value="created-asc">DATE_ASCENDING</option> <option value="created-desc">DATE_DESCENDING</option> <option value="publish_up-asc">PUBLISHED_DATE_ASCENDING</option> <option value="publish_up-desc">PUBLISHED_DATE_DESCENDING</option> <option value="featured-">FEATURED_ORDERING</option> <option value="rand-">RANDOM</option> </field>

and replace by
Code:
<field name="ordering" type="list" default="created-asc" label="ARTCILES_SORTED_BY" description="ARTCILES_SORTED_BY_DESC"> <option value="id-asc">ID_ASCENDING</option> <option value="id-desc">ID_DESCENDING</option> <option value="ref-asc">Ref Ascending</option> <option value="ref-desc">Ref Descending</option> <option value="ordering-asc">ORDERING_ASCENDING</option> <option value="ordering-desc">ORDERING_DESCENDING</option> <option value="hits-asc">HIT_ASCENDING</option> <option value="hits-desc">HIT_DESCENDING</option> <option value="created-asc">DATE_ASCENDING</option> <option value="created-desc">DATE_DESCENDING</option> <option value="publish_up-asc">PUBLISHED_DATE_ASCENDING</option> <option value="publish_up-desc">PUBLISHED_DATE_DESCENDING</option> <option value="featured-">FEATURED_ORDERING</option> <option value="rand-">RANDOM</option> </field>

Thanks
Dam
The following user(s) said Thank You: Igor

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #63451 by Igor
Replied by Igor on topic OS content slider - change Sort by
Great, it works!
Many thanks

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan