Land Of Coder

Your Cart is currently empty.

Please post your issues on the right forum, i 'll anwser you in 24h. Thanks. Please Login before Posting

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

Edited By: ray
Feb-24-12 05:07:26
Guest
Guest
useravatar
Offline
Posts
User info in posts
Administrator has disabled public posting

Re: Order at categories / Sorted function

Please help.
Like to use this paid modul as sone as possible, because it seems to be the right one for my challenge

THX

Guest
Guest
useravatar
Offline
Posts
User info in posts
Administrator has disabled public posting

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>

Guest
Guest
useravatar
Offline
Posts
User info in posts
Administrator has disabled public posting

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

Guest
Guest
useravatar
Offline
Posts
User info in posts
Administrator has disabled public posting

Re: Order at categories / Sorted function

Hi Mate,

Please try to do as my previous post:


  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:

Guest
Guest
useravatar
Offline
Posts
User info in posts
Administrator has disabled public posting

Re: Order at categories / Sorted function

Many thx
geat work.

ray cool

Guest
Guest
useravatar
Offline
Posts
User info in posts
Administrator has disabled public posting

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

Guest
Guest
useravatar
Offline
Posts
User info in posts
Administrator has disabled public posting

Re: Order at categories / Sorted function

Hi Mate,

You need to set the module param "Merge Parent Category" = "No", and keep your modified in the file "helper.php"

Guest
Guest
useravatar
Offline
Posts
User info in posts
Administrator has disabled public posting

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

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

No need to choose your favourite

When you buy a membership you get access to download all Joomla Extensions or Prestashop Extensions on this site, not only that, you also get free updates, new style variations and technical support for In The membership time.

$36.99
Joomla
$68.0
prestashop
$68.0
Magento

Like us on Facebook

Who's Online

We have 260 guests online

RSS Feeds

Subscribe to all rss or just section you care...

From our blog

Accepted Payment

If You're not statisfied for any reason, within 10 days we will refund your money.
Home Support Extensions Commercial Support Order at categories / Sorted function