5.00 (1 votes)

Many customers ask as how to configure the search module to display search results on completely different page than the search module is assigned to.
Why is it a problem?


For instance, if the search module is displayed on the home page only and there are many modules also assigned to the home page it may be inconvenient for site visitors to use the search module and look through search results among tons of modules :) 

It's all about ItemID.

The key issue is that the seacrh module uses the current menu ItemID unless there is no search component com_search assigned to any menu.
What is ItemID?
Go to Menus -> Your menu to check ItemID of any menu item.

menu-itemid


Of course it may be different for you home link. 
So assuming that you've got the searach module on home page, search results page will use home ItemID that you can see in the URL.

search-result-url

Tip:
If ItemID does not appear in the URL check if you have disabled SEO Settings -> Search Engine Friendly URLs.
It's recommended to enable this option at the end of working on the site (if you build it from scratch). 

 

Solution.

Edit the search module and navigate Options tab. There's Set ItemID filed that you can use to force search results to be displayed on the new page.

Display Search Results on a New Page in Joomla

 

Create hidden menu with the desired ItemID.

Do not have to use your current menu items for search results. You can create the menu that will not be published on the site but it will include the important information - the itemID of com_search component.

Step by step guide:

1. Create the new menu - called "hiddenmenu".

2. Create the new menu item.

3. Choose Search Form or Search Results (display search results) for Menu Item Type.

search-results-link


4. Check ItemId for this menu item. 

5. Enter ItemID in the Set ItemId filed.

 

 

 

Users' reviews

Total rating: 5.00 (1 votes) Add review

thanks soooooooooooooooooo much. item id solution was very good.

5.00

Thanks so much :)

Video Tutorials

EF4 Framework for Joomla! 3 - introduction

Joomla! 3 Quickstart Installation Guide

Speed up your website! Must watch video!

How to create Joomla article?

Joomla ReCaptcha - how to set up?

How to use Joomla editors?

How to display a module in Joomla article?

How to configure Joomla contact form?

How to check Joomla module positions names?

How to configure your language for Joomla 3?

How to create Joomla custom HTML module?

How to create Joomla menu?

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2017 Joomla-Monster.com All rights reserved. Joomla! is Free Software released under the GNU/GPL License.
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. Joomla-Monster.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.