Last updated on
Apr 27, 2021
|
Also applies to ColdFusion
To create different page views within your portlet you can configure the render parameters such as renderURL.
For example, to set the renderURL parameter:
Create a renderURLparameter
<cfset params = StructNew()> <cfset params.page = "somepage"> <cfoutput><a href="#createRenderURL(params)#">Link to somepage</a>
Check for parameter in the page and render conditionally:
<cfparam name="request.portlet.parameters.page" default=""> <cfif request.portlet.parameters.page IS "somepage"> <cfinclude template="somepage.cfm"> <cfelse> <!--- put step 1 here ---> </cfif>