Tagged: ACM Notification
-
AuthorPosts
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 18, 2017 at 7:25 am #1049411Hi 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.
frankgabriels_1961 Friendfrankgabriels_1961
- Join date:
- March 2017
- Posts:
- 48
- Downloads:
- 11
- Uploads:
- 42
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
July 18, 2017 at 8:49 am #1049457Greetings 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
WernerSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 18, 2017 at 8:56 am #1049460When 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 Friendfrankgabriels_1961
- Join date:
- March 2017
- Posts:
- 48
- Downloads:
- 11
- Uploads:
- 42
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
July 18, 2017 at 9:10 am #1049465OK, thanks for the clarification!
G’s
Werner
-
AuthorPosts
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.