Configure the Site Map portlet for search by external search engines
The Site Map portlet generates a navigable list of all public pages of the portal, serving two purposes...
- Site navigation
- Enable external search crawlers to collect portal pages more efficiently.
The Site Map portlet lists only public pages of the portal, that is pages, which users can access without logging in to the portal with a user ID and password. Secured portal pages are not available for search by anonymous users and therefore not listed by the Site Map portlet.
Limit to the number of links displayed per page
Set number of links to a maximum of between 100 and 200 links per page. The Google search engine recommends even fewer than 100 links per page.
To limit to the number of links, set MAX_LINKS using either...
- Manage Portlets portlet
- Go to...
Administration | Portlet Management | Applications
- Locate the Site Map portlet by searching for wp.ap.sitemap .
- Click the Edit portlet application icon for the Site Map portlet.
- Add the MAX_LINKS parameter by typing it in the New parameter: field.
- Click OK to save your updates.
- Portlet preferences in the portlet.xml file of the Site Map portlet
- Locate the WAR file of the Site Map portlet in the portal installation.
- Edit the file portlet.xml in that WAR file.
- In the section portlet-preferences set the parameter MAX_LINKS to the required value, for example 100. Refer to this example code snippet:
<portlet-preferences> <preference> <name>MAX_LINKS</name> <value>100</value> </preference> </portlet-preferences>- Redeploy the Site Map portlet.
- Restart the portal.
Hide Child Pages
You can hide pages under the content root in the Launch menu using the procedure Marking pages as hidden under the content rootThe page metadata attribute...
com.ibm.portal.Hidden
...is only provided out-of-the-box directly under content root (Launch menu).
You can enable this technique to work in the horizontal navigation by copying the code that hides the page from mainMenu.jsp into topNav.jspf. Search for "com.ibm.portal.Hidden" in mainMenu.jsp.
Parent topic:
Search by external search services
Related reference
Search on the portal by external search engines requires additional configuration.
Client identification for search of the portal by external search engines