Page 1 of 1

You create a Content Presenter Template with the following source code:<dt:contentTemplateDefvar=node><af:panelGroupLayo

Posted: Sun Jun 11, 2023 3:59 pm
by answerhappygod
You create a Content Presenter Template with the following source code:<dt:contentTemplateDefvar=node><af:panelGroupLayout layout=vertical id=pgl2 valign=top><af:goLink text=#{node.propertyMap[RD_NEWS:TITLE].asTextHtml} id=gil1 destination=#{/faces/home/news- viewer?news_id=}#{node.propertyMap[dDocName].value} styleClass=newstitle/><af:outputText value=#{node.propertyMap[RD_NEWS:LEAD].asTextHtml} id=ot2 styleClass=bodyText/><af:outputText value=#{node.propertyMap[RD_NEWS:IMAGE].asTextHtml} escape=false id=ot1/></af:panelGroupLayout></dt:contentTemplateDef>What does this code mean?

A. This template will render a single Site Studio file. It includes a Region Definition called RD_NEWS, and the following attributes: Title, Lead, and Image.
B. This template will render multiple Site Studio files. It is a list (static or dynamic) of elements of a Region Definition called RD_NEWS, which has the following attributes: Title, Lead, and Image.
C. This template retrieves a document with the RD_NEWS Content Type, and renders the following metadata fields: Title, Lead, and Image.
D. This code is wrong. The Region Definition name should be declared in the node variable, not in the propertyMap method.