Please post your issues on the right forum, i 'll anwser you in 24h. Thanks. Please Login before Posting
- Index
- » Extensions Commercial Support
- »
- » Order at categories / Sorted function
Order at categories / Sorted function
Order at categories / Sorted function
Hi together,
is there a way to change the order of the displayed subcategories?
I need to have a defined ordering of the displayed categories / subcategories.
I addition another question:
Is it possible to add a piont of : published date and modified date at the 'Articles Sorted By' function?
Foresighted thx about help
Feb-24-12 05:07:26
Re: Order at categories / Sorted function
Hi Mate,
If you want to ordering sub-categories of the module, please try to do as following:
- Open the file "helper.php" in the folder "modules/mod_lofk2tabnews/", then find code:
Code:
$query = 'SELECT id, alias, name, parent' .
' FROM jos_k2_categories AS c' .
' WHERE c.id IN ('.$parent_id.')';
Replace to:
Code:
$query = 'SELECT id, alias, name, parent' .
' FROM jos_k2_categories AS c' .
' WHERE c.id IN ('.$parent_id.') ORDER BY ordering';
- To add a piont of : published date and modified date, please try to do as following:
+ Open the file "mod_lofk2tabnews.xml" in the folder "modules/mod_lofk2tabnews/", then find code:
Code:
<option value="created_asc">DATE_ASCENDING</option>
<option value="created_desc">DATE_DESCENDING</option>
Replace to:
Code:
<option value="created_asc">DATE_ASCENDING</option>
<option value="created_desc">DATE_DESCENDING</option>
<option value="modified_asc">Modified ASC</option>
<option value="modified_desc">Modified DESC</option>
Re: Order at categories / Sorted function
Great Work.
THX
I add the following code in the mod_loftk2tabnews.xml:
Code:
<option value="modified_asc">MODIFIED_ASCENDING</option>
<option value="modified_desc">MODIFIED_DESCENDING</option>
And also I add in the YOUR_DOMAIN/language/en-GB/en-GB.mod_lofk2tabnews.ini the following:
Search :
Code:
DATE_ASCENDING="Date - Ascending"
+ add
Code:
MODIFIED_DESCENDING="Modified - Descending"
MODIFIED_ASCENDING="Modified - Ascending"
Many THX about this issue.
Anyhow, there is still the question about :
defined ordering of the displayed categories / subcategories
Do you have a solution?
Would be great.
Have Fun
ray
Re: Order at categories / Sorted function
Hello:
I need to sort categories in Theme3 - this solution is not working.
I tried some other workarounds in the helper.php, for example:
public static function getListCatId( $parent_id ){
$db = &JFactory::getDBO();
$query = 'SELECT id, alias, name, parent' .
' FROM jos_k2_categories AS c' .
' WHERE c.id IN ('.$parent_id.') ORDER BY c.name';
$db->setQuery( $query );
$sesion = $db->loadObjectList();
return $sesion;
}
Any help would be greatly appreciated!
Thanks,
Alan
- Index
- » Extensions Commercial Support
- »
- » Order at categories / Sorted function
Board Info
- Board Stats:
- Total Topics:
- 2050
- Total Polls:
- 0
- Total Posts:
- 4480
- Posts this week:
- 10
- User Info:
- Total Users:
- 20537
- Newest User:
- MrKrahoz
- Members Online:
- 0
- Guests Online:
- 260
- Most Active Users:
- hatuhn, Nimmzo, Romeo.Tran, panda, luanhna, Mackelito, stavroch, Ewoudv
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked































