FieldRenderer - Get specific field name from different template sections

Posted by Zooking on Stack Overflow See other posts from Stack Overflow or by Zooking
Published on 2010-03-10T13:56:18Z Indexed on 2010/04/07 9:43 UTC
Read the original article Hit count: 597

Filed under:
|

Hi,

Is there a way to get a specific field name from a template with several sections to a FieldRenderer control?

F.ex. I have a template with the sections "Data" and "Data2", both have a single-text-field called "Text". Is there a way to make my FieldRenderer get the field "Text" in section "Data2"

It would be nice if one of the below suggestions worked:

<sc:FieldRenderer ID="test" runat="server" FieldName="Text" Section="Data2" />

<sc:FieldRenderer ID="test" runat="server" FieldName="Data2/Text" />

BR Larre

© Stack Overflow or respective owner

Related posts about sitecore

Related posts about sitecore6