Best way to include dynamic content in Portal 9.5 Theme

I am working on migrating another theme from Portal 8.0 to Portal 9.5. We have some custom JSP files we wrote that we are including into our theme. It seems like the preferred way of doing this is to add the dynamic content spot into plugin.xml and then including it in our theme.

Ex:

<a rel="dynamic-content" href="dyn-cs:id:ourTheme9500_moreinfo"></a>

The current way we are doing it is by referencing the JSP file direct as:

<a rel="dynamic-content" href="res:/wps/ourTheme9500/themes/html/ourtheme/moreinfo.jsp"></a>

Am I correct in my thinking ?

Yes Vlad, I would suggest using plugin.xml and dyn-cs:id for your custom JSPs to be consistent with the other ootb JSPs (header, footer, etc).

-Oscar

Vlad,

Oscar is correct, please see this for more documentation if you like:

https://help.hcltechsw.com/digital-experience/8.5/dev-portlet/csa2r_dyn_cntnt_spot.html

You can use:

<a rel="dynamic-content" href="res

<a rel="dynamic-content" href="dav

depending on where the content is.

i.e.

<uri value="res:{war:context-root}/themes/html/dynamicSpots/mpbutton.jsp" />