Page 1 of 1
First time using CMSMS. Limit news to 2? Change search template?
Posted: Thu Jul 05, 2007 2:13 pm
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.
Re: First time using CMSMS. Limit news to 2? Change search template?
Posted: Thu Jul 05, 2007 2:47 pm
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.
Re: First time using CMSMS. Limit news to 2? Change search template?
Posted: Thu Jul 05, 2007 2:51 pm
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.
Re: First time using CMSMS. Limit news to 2? Change search template?
Posted: Thu Jul 05, 2007 7:52 pm
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.