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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Remko

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

Post 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
Remko

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

Post 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
Locked

Return to “CMSMS Core”