Page 1 of 1

Ascending checkbox doesn't work in creating newspage???

Posted: Tue Oct 25, 2005 2:03 pm
by Remko
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

Re: Ascending checkbox doesn't work in creating newspage???

Posted: Tue Oct 25, 2005 7:52 pm
by Remko
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