Creating a path component tag | HCL Digital Experience

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.

About this task

An example of the format of a path component tag:

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

To create a path component tag:

Procedure

  1. Click Insert a Tag from a presentation template or element design field. The Tag Helper dialog opens.
  2. Select Path Component as the tag type.
  3. Select a path type. This parameter is added to the tag as the type=" " parameter:
    Base
    This parameter returns the base section of a URL. For example, http://hostname:8080. Use this parameter only when you render content that uses a servlet.
    Noprefixbase
    The URL generated by the path component is fully qualified when viewed through a portal. Use this parameter instead of "base" to display content in rendering portlets.
    Context
    This parameter returns the context section of a URL. For example, /ILWWCM. Use this parameter only when you render content that uses a servlet.
    Servlet
    This parameter returns the servlet path of a URL. For example, /ILWWCM/connect. Use this parameter only when you render content that uses a servlet.
    Noprefixservlet
    The URL generated by the path component is fully qualified when viewed through a portal. Use this parameter instead of "servlet" to display 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 that is displayed in a rendering portlet. If no prefix exists, then an empty string is returned.
  4. Click OK to add the tag to your navigator design.

What to do next

When you add this tag to your design, you can also add the following parameters to the tag:
Table 1. Extra tag parameters
Tag parameters Details
start=" "

end=" "

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