+

Search Tips   |   Advanced Search

Creating a dynamic content spot


We can create a custom dynamic-content spot to include in a theme template:

  1. Log on to the WAS admin console and go to...

  2. Enter a name to be used as the ID of the mapping, for example newDynamicContent.

  3. 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
    

  4. Select OK.

  5. Save the changes.

  6. Restart the portal.

  7. Open the theme template file on WebDAV.

  8. Locate where in the template to include the dynamic content and add the following line of code:
    <link rel="dynamic-content" href="http://setgetweb.com/p/portal80/dyn-cs:id:<your mappping ID>">
    
    Replace <your mapping ID> with the name that you gave the mapping, for example newDynamicContent.

  9. Clear the browser cache and refresh the page that has the theme templato that you modified to get the new dynamic content spot to render.


Example using parameters

We 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 to include the dynamic content and add the following line of code:

<link rel="dynamic-content" href="http://setgetweb.com/p/portal80/dyn-cs:id:<your mappping ID>+'?text=dynatext'">


Parent: Dynamic content spots