-1

Hi I am working in oracle webcenter Sites 11g. I have added a new page attribute name pagetitle and added that in PageDefinition and add a new template with JSP logic and added the code:

<%=ics.GetVar("pagetitle")%>

but when viewing the page after creating a new page , the value of pagetitle is showing null.

drhagen
  • 8,331
  • 8
  • 53
  • 82

2 Answers2

0

You have to load the page asset first after read the required attributes.

Below is the sample code for display the 'pagetitle'

<assetset:setasset name="Page" type='<%=ics.GetVar("c")%>' id='<%=ics.GetVar("cid")%>' />
<assetset:getattributevalues name="Page" typename='PageAttribute' attribute='pagetitle' listvarname="pagetitlelist" />
<ics:listget fieldname="value" listname="pagetitlelist" output="title"/>
<%=ics.GetVar("title")%>
Kamal
  • 1
  • 2
0

With this line in your JSP you can obtain all attibutes:

<ics:argument name="attributes" value="attribute1,attribute2,...,attributen" />

if want to use any attribute, do that.

For example: ${asset.attribute1}

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108