Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Saguaros Moderator
    #1049411

    Hi Werner,

    You can open the file: [root]/templates/ja_teline_v/acm/notification/tmpl/new-items.xml

    Add a new fieldset for article order:

    <fieldset name="ordering" label="TPL_FEATURED_ORDERING_LABEL" description="TPL_FEATURED_ORDERING_DESC">
        <field name="article_ordering" type="list"
               default="publish_up"
               label="TPL_FEATURED_ARTICLE_ORDER_LABEL"
               description="TPL_FEATURED_ARTICLE_ORDER_DESC">
            <option value="a.ordering">JGLOBAL_ORDERING</option>
            <option value="fp.ordering">TPL_FEATURED_ORDER</option>
            <option value="a.hits">JGLOBAL_MOST_HITS</option>
            <option value="a.title">JGLOBAL_TITLE_ALPHABETICAL</option>
            <option value="a.created">JGLOBAL_CREATED</option>
            <option value="modified">JGLOBAL_MODIFIED</option>
            <option value="publish_up">JPUBLISHED</option>
        </field>
    
        <field name="article_ordering_direction" type="list"
               default="TPL_FEATURED_ORDER_DIRECTION_LABEL"
               label="TPL_FEATURED_ORDER_DIRECTION_LABEL"
               description="TPL_FEATURED_ORDER_DIRECTION_DESC">
            <option value="DESC">TPL_ORDER_DIRECTION_DESCENDING_VALUE</option>
            <option value="ASC">TPL_ORDER_DIRECTION_ASCENDING_VALUE</option>
        </field>
    </fieldset>

    Go to backend settings of this ACM Notification module and set like this: http://prntscr.com/fx1tn4

    I attach xml file here so you can make comparison.


    1. new-items.xml_.zip
    frankgabriels_1961 Friend
    #1049457

    Greetings Saguaros,

    THANKS, problem solved!

    One little remark though…
    In the (written) code you provide in this post seems to be missing an item.
    When I copied this code and pasted into the [root]/templates/ja_teline_v/acm/notification/tmpl/new-items.xml file, I got an error message.

    In the xml-zipfile you provided, the code opens with a statement and closes with .
    I copied & pasted this code into the file and now it works perfectly.

    One more question: If I make use of the "compile less to css" option withing Teline V, will my changes be overwritten? (I’m new to this less/css thing…)

    G’s
    Werner

    Saguaros Moderator
    #1049460

    When compiling less to css, only css files will be overwritten (except for ‘custom.css’ file). So before compiling, remember to backup all css files first.

    frankgabriels_1961 Friend
    #1049465

    OK, thanks for the clarification!

    G’s

    Werner

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

This topic contains 4 replies, has 2 voices, and was last updated by  frankgabriels_1961 7 years, 2 months ago.

The topic ‘Ordering newest articles in JA ACM Notification’ is closed to new replies.