test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • darkpain Friend
    #148317

    Hi,

    I would like to know how can I change the order of section in module JANews at Frontpage. There is no such parameters in the module.

    Thanks for your time

    Anonymous Moderator
    #331780

    Hi darkpain

    Please open modules/ja_news2/helper.php file, at about line line 377, find following code:

    [php]$query = “SELECT id, title, `description`, CASE WHEN CHAR_LENGTH(s.alias) THEN CONCAT_WS(“:”, s.id, s.alias) ELSE s.id END as slug FROM #__sections s WHERE published = 1″ . $where;[/php]

    and change to:

    [php]$query = “SELECT id, title, `description`, CASE WHEN CHAR_LENGTH(s.alias) THEN CONCAT_WS(“:”, s.id, s.alias) ELSE s.id END as slug FROM #__sections s WHERE published = 1″ . $where;
    $query .= ” ORDER BY s.id desc” ; // ” ORDER BY s.ordering desc”
    [/php]

    darkpain Friend
    #331815

    Thank you very much! 😀

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  darkpain 14 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum