views:

595

answers:

2

The joomla search results appear on the home page. I want it to show up on a new page. According to some online posts I had to modify the mod_search.php to set the item id to a non existing item so i set it to 0, but the problem is that the changes are not being reflected in my search module at all. I also tried putting a hidden field called itemid in the modules/mod_search/tmpl/default/default.php form but even that is not picked, I set the form target equal to _blank and tried to change the action page of the form to say index.php?Itemid=0 instead of index.php but all of this does not seem to reflect on the search module. When i manually change the itemid in the browser location box to 0, the results show up on a different page (thats what i want).

Please suggest what should I do?

+1  A: 

Try to change request method of search form:

<form ... method="get">
<input type="hidden" name="itemId" value="0" />

or like this

<form action="...?itemId=0" method="post">
xaoc
still no luck ... the change is not even reflected in the page
ria
i resolved this issue by updating the changes to joomla15/templates/TemplateName/html/mod_search/ default.php file. Now i see the results on a new page.How can i set this page to use a specific joomla template and not the one set as default?
ria
You can add to default.php custom CSS styles. Probably, this tutorial can help you:http://www.learnwebdesignonline.com/cms/customizing-joomla-templates.htmhttp://joomlablogging.wordpress.com/2008/02/10/giving-your-joomla-blog-section-a-different-template/
xaoc
in fact i added a menu item pointing to the mod_search and assigned a template to that menu item :) thnx for all ur support
ria
A: 

Thanks a lot. I had search this issue in several times. But at last you help me..

anu
no probz :) ur welcome
ria