2017-05-23 15 views
-1

でページ属性の値がnullになっているこんにちは私はoracle webcenter Sites 11gで作業しています。 は、私は新しいページがページタイトル属性名を追加し、pagedefinitionにすることを追加し、JSPロジックを使用して新しいテンプレートを追加し、コードを追加した<% = ics.GetVar(「ページタイトル」)%>が、ページを表示します新しいページを作成した後、のページ番号がnullを示しています。助けてくださいoracle webcenter sites 11g R1

答えて

0

必要な属性を読み終えたら、まずページアセットを読み込む必要があります。

以下

表示のためのサンプルコードを使用すると、すべてのattibutesを得ることができ、あなたのJSPで「ページタイトル」この行では

<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")%> 
0

です:

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

任意の属性を使用したい場合は、それを行います。例えば、${asset.attribute1}