[solved] {news} start parameter sequence

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.
Post Reply
User avatar
trainer
Forum Members
Forum Members
Posts: 43
Joined: Sat Jun 19, 2010 9:58 am

[solved] {news} start parameter sequence

Post by trainer »

Hi :)
I am testing some demo categories to get the news working as I would like.

Code: Select all

news_id		news_category_id	news_title
1 		1 			News Module Installed 
2	 	2 			Top Cat
3	 	2		 	Hong Kong Phooey
4		2			Mutley
Edit - this table displays properly in Firefox (not I.E.)




(news_category_id 2 = Fun)



I would like to have two individual entries on either side of a page.

First item = Hong Kong Phooey
Second item = Mutley

So I am using this code..


1/ {news category="Fun" start='2' number='1' summarytemplate="plain"}
2/ {news category="Fun" start="3" number="1" summarytemplate="plain"}


However, what I am seeing is Hong Kong Phooey & TopCat

Am I using the parameters correctly?

Thanks.
Last edited by trainer on Tue Jun 22, 2010 3:27 pm, edited 1 time in total.
CMSMS 1.11.1
PHP Version 5.3.3-1ubuntu9.7
MySQL 4.1.22
Apache 2.2.16 (Ubuntu)
Linux 2.6.35-22
wy0453
New Member
New Member
Posts: 5
Joined: Fri May 14, 2010 2:59 am

Re: {news} start parameter sequence

Post by wy0453 »

very helpful post.. thanks for sharing..
User avatar
trainer
Forum Members
Forum Members
Posts: 43
Joined: Sat Jun 19, 2010 9:58 am

Re: {news} start parameter sequence

Post by trainer »

ok - I worked it out (finally).

I guess start=""  starts at the latest entry (with id = 0) - and not the order that they went into the database.
CMSMS 1.11.1
PHP Version 5.3.3-1ubuntu9.7
MySQL 4.1.22
Apache 2.2.16 (Ubuntu)
Linux 2.6.35-22
Post Reply

Return to “CMSMS Core”