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

    Hello,

    Thank you for taking time to read this.

    1. I have a website using the JA Seleni template
    2. JA Seleni ships with JA Side news
    3. I have installed Ja side news and it is working quite well
    4. I would like the order of articles to be based on the date that the article was published
    5. Unfortunately, the articles are currently ordered based on the date created

    How do I get the JA Side news module to display articles based on published date. Unfortunately they are currently ordered by creation date.

    This is important, because my website publishes minutes for a local group.

    I want to add Minutes for february 2007, and set these as being published in 2007. But I want my January 2010 minutes to appear at the top, having been published in January 2010 (3 years later in time).

    Also, on a side note, I find these modules to be quite slow in reacting to new articles published on the website. It is oftern several minutes before these realise a new article has been added to the database – even if i refresh the screen or clear my browing history and cache. Any suggestions on this too.

    Thank you for taking time to help me with this, and hope the answer will be useful for other members too.

    smitheringale Friend
    #330050

    I just wanted to point out that I can get around this issue by chaging the “creation date” in the backend.

    But I would really prefer this to be accomplished in the front end, either by ordering on the basis of published date – or, and here is another idea, could I allow front end users to specify the creation date when adding and editing articles?

    Many thanks

    Saguaros Moderator
    #330683

    Now, I help you add more features on the artciles ordering:

    Please open the file: modulesmod_jasidenewsmod_jasidenews.xml and try to find code at 39:

    [PHP]
    <param name=”sort_order_field” type=”list” default=”created” label=”SORT ORDER BY” description=”SORT ORDER BY DESC”>
    <option value=”created”>DATE</option>
    <option value=”ordering”>ORDER</option>
    <option value=”hits”>HITS</option>
    </param>
    [/PHP]

    Replace:
    [PHP]
    <param name=”sort_order_field” type=”list” default=”created” label=”SORT ORDER BY” description=”SORT ORDER BY DESC”>
    <option value=”publish_up”>PUBLISH DATE</option>
    <option value=”modified”>MODIFIED DATE</option>
    <option value=”created”>CREATION DATE</option>
    <option value=”ordering”>ORDER</option>
    <option value=”hits”>HITS</option>
    </param>
    [/PHP]

    With changes, you can order articles by Modified date or publishing date via the “Articles Sorted By” parameter.

    Good luck

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

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

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