hi folks,
When making a newspage (content - page - create new page -content type: news),after that you have 3 three checkboxes. The first of them is an ascending checkbox for lining up the newsitems, sorted by date.
Unfortenately I am unable to enable this checkbox. Anybody with a solution? I'd like to post my news with the latest news item on top!
Thnx in advance!!
Remko
Ascending checkbox doesn't work in creating newspage???
-
Remko
Re: Ascending checkbox doesn't work in creating newspage???
SOLVED!
Open your News file and open the News.module.php.
Search for the next lines and replace them:
Once you have done this, you can (un)check your ascending box.
old code:
if (isset($params["sortasc"]))
Replace with new Code:
if ($params["sortasc"]==0)
old code:
if (isset($params['sortasc']) && $params['sortasc'] == 1)
Replace with new code:
if (isset($params['sortasc']))
Thanks to this post: http://forum.cmsmadesimple.org/index.ph ... 540.0.html
Open your News file and open the News.module.php.
Search for the next lines and replace them:
Once you have done this, you can (un)check your ascending box.
old code:
if (isset($params["sortasc"]))
Replace with new Code:
if ($params["sortasc"]==0)
old code:
if (isset($params['sortasc']) && $params['sortasc'] == 1)
Replace with new code:
if (isset($params['sortasc']))
Thanks to this post: http://forum.cmsmadesimple.org/index.ph ... 540.0.html
