First time using CMSMS. Limit news to 2? Change search template?

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
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

First time using CMSMS. Limit news to 2? Change search template?

Post by cb2004 »

This is my first time using CMSMS and I think I am going to like it. Couple of questions to start me off.

How do I limit the news items to 2?

How do I change the template that the search feature uses?

Cheers all.
cyberman

Re: First time using CMSMS. Limit news to 2? Change search template?

Post by cyberman »

Hi,

welcome on CMS made simple
cb2004 wrote: Couple of questions to start me off.
So you should read module help and all your questions will be answered ;).
How do I limit the news items to 2?
You have to call news module with parameter number='2'.
How do I change the template that the search feature uses?
Search module has a admin too (menu extensions > search) with the possibility to change search templates.
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: First time using CMSMS. Limit news to 2? Change search template?

Post by cb2004 »

cyberman wrote: Hi,

welcome on CMS made simple
cb2004 wrote: Couple of questions to start me off.
So you should read module help and all your questions will be answered ;).
How do I limit the news items to 2?
You have to call news module with parameter number='2'.
How do I change the template that the search feature uses?
Search module has a admin too (menu extensions > search) with the possibility to change search templates.
Thanks for your help. Everyone needs a little guidance with something thats new. I did check the help but could not get the desired effect. I was trying itemcount='2'.

I have changed the search form template and the way the search results display, but you can display the search results in another page:

(optional) resultpage="null" - Page to display search results in. This can either be a page alias or an id. Used to allow search results to be displayed in a different template from the search form

However I dont know how to use these parameters yet.
cyberman

Re: First time using CMSMS. Limit news to 2? Change search template?

Post by cyberman »

If you haven't change default settings in config.php there's the function named auto-alias activated.

This function take the page title and create a page alias automatically if you save a content page. If you now go to this page (edit this page) to tab "Options" you can see the created alias.

This alias you have to use with parameter resultpage.
Post Reply

Return to “CMSMS Core”