Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Josh Friend
    #206452

    Hello there,

    In the JA News Pro module, the Content Source can be either Joomla Articles or K2 items.

    Now, the module is displaying Article items. Articles are sorted by Date. I have found out this is sorted according to Date Created.

    How do I change the code so that it is sorted according to Date Published?

    I’d tried to modify
    modules/mod_janewspro/mod_janewspro.xml file

    <field
    name=”ordering”
    type=”list”
    default=”ordering”
    label=”ARTICLES_SORTED_BY”
    description=”ARTICLES_SORTED_BY_DESC”>
    <option value=”ordering”>Ordering</option>
    <option value=”title”>Title Alphabetical</option>
    <option value=”hits”>Most popular</option>
    <option value=”modified”>Latest Modified</option>
    <option value=”created”>Date</option>
    <option value=”publish_up”>Publish Date</option>
    <option value=”rand”>Random ordering</option>
    </field>

    but it’s NOT working

    Please advise…

    jooservices Friend
    #571034

    Hi there
    Have you tried with

    <option value="publish_up">Publish Date</option>
    ( Is it your modified ? )

    Thank you,
    Viet Vu

    jooservices Friend
    #736082

    Hi there
    Have you tried with

    <option value="publish_up">Publish Date</option>
    ( Is it your modified ? )

    Thank you,
    Viet Vu

    Josh Friend
    #571039

    Yes I have tried… you can see the modified code above

    Josh Friend
    #736087

    Yes I have tried… you can see the modified code above

    jooservices Friend
    #571736

    Hi there
    You have modified xml but you didn’t change in PHP to update query.

    Thank you,
    Viet Vu

    Josh Friend
    #571756

    Where to modify?

    jooservices Friend
    #571943

    Hi there
    Please check into module helper.

    If you can’t work on it please provide your site backend & CPanel access.
    I’ll help you work on it.

    Thank you,
    Viet Vu

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

This topic contains 8 replies, has 2 voices, and was last updated by  Josh 9 years, 5 months ago.

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