Creating a dynamic content spot with resource environment providers | HCL Digital Experience
You can create a custom dynamic content spot to include in a theme template.
Procedure
- Log on to the WebSphere® Integrated Solutions Console.
- Go to .
- Select Custom Properties.
- Select New.
- Enter a name to be used as the ID of the mapping.
For example newDynamicContent.
- Enter a value that is the URI to the dynamic content to
be included by the mapping, similar to the following example:
res:/CustomThemeContext/themes/html/MyTheme/dynamicContent.jsp
- Select OK.
- Save the changes.
- Restart the portal.
- Open the theme template file on WebDAV.
- Locate where in the template you want to include the dynamic
content and add the following line of code:
Replace <your mapping ID> with the name that you gave the mapping, for example newDynamicContent.<link rel="dynamic-content" href="dyn-cs:id:<your mappping ID>">
- Clear the browser cache and refresh the page that has the theme template that you modified to get the new dynamic content spot to render.
Using parameters
You can pass parameters to a JSP page that is rendering the dynamic content. If the page expects
a parameter such as text, then you would locate where in the
template you want to include the dynamic content and add the following line of
code:
<link rel="dynamic-content" href="dyn-cs:id:<your mappping ID>+'?text=dynatext'">