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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899559
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This question has been solved and has 1 reply.

You must be registered to view answers and replies in this topic. Registration is free.


Register Login
 
Post Reply