+

Search Tips   |   Advanced Search

Friendly URL for web content example

This example demonstrates how friendly URLs for web content work with multiple web content viewers on a single portal page. The example describes the portal page structure referenced by the friendly URLs and explains the underlying structure of the content in an Web Content Manager site framework.

The example also describes the configuration of the web content viewers.


Elements in the example

The example is composed of the following elements:


Browsing the example content

With the portal page and web content site framework defined, browsing the content demonstrates how the different elements interact:

  1. Navigate to Human Resources page for the first time.

    • The URL that is displayed in the address bar of the browser is http://www.example.com:10039/wps/portal/home/hr/!ut/p/b1/...

    • The URL reflects the friendly URL names of the portal pages Home and Human Resources.

    • The Web Content Viewer A viewer renders the menu component and displays links to the content items HR Welcome, Workplace Safety, and Personal Wellness.

    • The Web Content Viewer B viewer shows the default content item HR Welcome from the site area Human Resources, because of the content association defined on the portal page.

      When the portal page is first displayed, the path of the default content item is not included in the friendly URL.

  2. Click Workplace Safety from the list of content items.

    • The URL that is displayed in the address bar in the browser is http://www.example.com:10039/wps/portal/home/hr/health/workplace%20safety/!ut/p/b1/...

    • The Web Content Viewer B viewer displays content item Workplace Safety.

    • The URL is adjusted so that the path to the content item (health/workplace%20safety) becomes part of the URL.

  3. Click HR Welcome from the list of content items.

    • The URL that is displayed in the address bar of the browser is http://www.example.com:10039/wps/portal/home/hr/hr%20welcome/!ut/p/b1/...

    • The Web Content Viewer B viewer displays the content item HR Welcome again, giving the same result as when the portal page was viewed for the first time.

    • Because the Web Content Viewer A viewer is broadcasting the link to the content item, the URL that is displayed in the browser is updated to reference the path to the content item (hr%20welcome).


Content item references with friendly URLs for web content

The URL displayed in the web browser can sometimes include the content item path when you browse pages and content with web content viewers. However, we can also reference content items directly in friendly URLs for web content.

For example, to reference the content items HR Welcome, Workplace Safety, and Personal Wellness in the context of the Human Resources page, you would use the following friendly URLs for web content:

These friendly URLs for web content include URL-encoded space characters (%20) instead of unencoded space characters. Your web browser might accept unencoded space characters when specifying content item names in friendly URLs for web content. However, to ensure consistent behavior from the portal, use the URL-encoded value.


Parent: Friendly URLs and web content viewers