Create portlet parameters

To create different page views within your portlet you can configure the render parameters such as renderURL. 
For example, to set the renderURL parameter:

  1. Create a renderURLparameter

<cfset params = StructNew()> 
<cfset params.page = "somepage"> 
<cfoutput><a href="#createRenderURL(params)#">Link to somepage</a>
  1. 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>

 Adobe

Get help faster and easier

New user?