test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • babba79 Friend
    #131647

    Hi,

    I´m using the Kulanite Template on 1.5.5, today i installed the new module ja_news 1.3.2.

    The problem i have is, it dosn´t matter which category i choose, the first article is always the same.

    example:
    section= products
    category=a —ID 1
    product1
    product2
    product3

    category=b—ID2
    product1

    now i choose in the parameter
    category
    1
    2
    (i would think, product 1 is now the first article on the frontpage, but no…. it´s product 3),
    what´s wrong, and how can i fix it?:((

    Thanx

    Sherlock Friend
    #263491

    Hi
    You can edit helper.php(modulesmod_janews)
    Search this line :

    $query .= ' ORDER BY a.created DESC' ;
    Change to

    $query .= ' ORDER BY a.created ASC' ;
    or you can change as you want

    babba79 Friend
    #263601

    Hi nguoiabcd,

    thanx for the fast answer,
    that was my problem.

    what do you meen with “or you can change as you want”.
    What else can i choose for the parameter?

    Thanks you very much.

    Sherlock Friend
    #263655

    Glad to help you

    $query .= ' ORDER BY a.created DESC' ;
    You can change this line as you want, example above, change DESC to ASC
    It will take a change in sort order, you can change a.created to some other fields

    babba79 Friend
    #263693

    thank u very much…
    this was very helpfull.

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

This topic contains 5 replies, has 2 voices, and was last updated by  babba79 16 years, 4 months ago.

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