+

Search Tips   |   Advanced Search

Place the Search Center on a public portal page

  1. Set a Search and Tag Center profile for the page...

    • If we created the page using Manage Pages in the site toolbar:

      1. From the site toolbar, select...

          Page | General tab | Edit Page Properties | Manage Page Properties window | Advanced tab | Theme Settings | Profile pulldown list | Search and Tag Center

        If we created the custom search center page as a child to the original Search Center page, the Search and Tag Center profile is inherited from the parent page.

      2. Scroll to the Metadata section of the Manage Page Properties window.

      3. Verify that one of the listed keys is resourceaggregation.profile with the specified value of profiles/profile_search_tag.json.

    • If we created the page using the Manage Pages administration portlet:

      1. Select Edit Page Properties for the page.

      2. Select Advanced options.

      3. Select I want to set parameters.

      4. Add the parameter resourceaggregation.profile with a value of profiles/profile_search_tag.json .

      5. Click OK > OK.

  2. Add the Search Center portlet to the custom search center page:

    1. From the custom search center page, select the Create tab in the site toolbar.

    2. From the Applications tab, select the Search Center portlet.

    3. Select Add to Page ...

  3. Locate the custom Search Center page in the Manage Pages portlet. To do this, click the Administration menu icon in the toolbar to open the administration menu.

  4. Click...

  5. Search for the page.

  6. Give the custom Search Center page a unique name:

    1. Select Edit Page Properties.

    2. Set a value for the Unique name.

    3. Click OK.

  7. Give the portlet window for the Search Center a unique name:

    1. Select Edit Page Layout.

    2. From the portlet menu, select Set portlet window unique name.

    3. Set a value for the Unique name.

    4. Click OK > Done.

  8. cd PORTAL_HOME/theme/wp.theme.modules/webapp/installedApps/ThemeModules.ear/ThemeModules.war/themes/html/dynamicSpots/modules/search

  9. Edit the file search.jsp.

  10. Locate the following code snippet that points to the default Search Center page:
    <portal-core:constants/><portal-core:defineObjects/>
    <portal-navigation:urlGeneration 
        allowRelativeURL="true"  
        contentNode="ibm.portal.Search Center" 
        layoutNode="ibm.portal.Search Center Portlet Window"
    

  11. Set the values for the two parameters contentNode and layoutNode as follows:

    • Set the value for contentNode to the unique name of the custom Search Center page.

    • Set the value for layoutNode to the unique name that you gave to the window of the copy of the Search Center portlet.

    After the updates, the code snippet might look like the following:

    <portal-core:constants/><portal-core:defineObjects/>
    <portal-navigation:urlGeneration 
        allowRelativeURL="true"  
        contentNode="ibm.portal.your_public_search_center_page_unique_name" 
        layoutNode="ibm.portal.your_public_search_center_portlet_window_unique_name"
    

  12. Restart the portal server.


Results

When the portal users do a search using the search box in the theme, they are now directed to the Search Center on the public portal page.


Parent Enable anonymous users to search public pages of the portal