Creating a path component tag

The path component tag is used to represent certain parts of the URL such as the servlet path, the base path, or the context path of the current page. This tag can be added to presentation templates, element designs, and component designs.

This is the format of a path component tag:

[pathcmpnt type=" " start=" " end=" " ]

To create a path component tag:

  1. Click Insert a Tag from a presentation template, component, or element design field. The Tag Helper dialog opens.
  2. Select Path Component as the tag type.
  3. Select a path type. This is added to the tag as the type=" " parameter:
    Base
    This returns the base section of a URL. For example, http://hostname:8080 This should only be used when rendering content using a Servlet.
    Noprefixbase
    The URL generated by the path component is fully qualified when viewed through a portal. Use this instead of "base" when displaying content in rendering portlets.
    Context
    This returns the context section of a URL. For example, /ILWWCM This should only be used when rendering content using a Servlet.
    Servlet
    This returns the Servlet path of a URL. For example, /ILWWCM/connect This should only be used when rendering content using a Servlet.
    Noprefixservlet
    The URL generated by the path component is fully qualified when viewed through a portal. Use this instead of "servlet" when displaying content in rendering portlets.
    Prefix
    The URL generated by the path component is fully qualified when viewed through a portal. Use this setting to display the prefix value of web content displayed in a rendering portlet. If no prefix exists then an empty string is returned.
  4. Click OK to add the tag to your design.
Once you have added the tag to your design, you can also add the following parameters to the tag:
Table 1. Additional tag parameters
Tag parameters Details
start=" "

end=" "

The start and end attributes are used to wrap the data returned by a tag within other tags, such as HTML. These attributes are not mandatory.