I am trying to update site edit from a Tridion 5.2 installation + custom framework, to Tridion 2011 SP1 HR1 UI 2012
The old ASP.NET pages contains tags that were used for SiteEdit. These tags still work with UI 2012, although they might nog be fully HTML compliant. the following code allows the body text to be edited.
<span id="_SE_FLD" _se_fld="tcm:Content/custom:SectionHomepage/custom:Body[1]/custom:Text[1]">
<asp:Literal ID="bodyText" runat="server"></asp:Literal>
</span>
My quetion is about components (HighlightItems) that are on this page. These are rendered in the repeater below. Although u user can now change the highlight on the page, the functionality of adding or removing HighlightItems doesn't work.
<asp:Repeater ID="rpHighlights" runat="server" OnItemDataBound="rpHighlights_ItemDataBound">
<HeaderTemplate>
<div class="list_boxes">
<h2>Cases</h2>
<ul>
</HeaderTemplate>
<ItemTemplate>
<span id="_SE_FLD" _se_fld="tcm:Content/custom:SectionHomepage/custom:HighlightItems[<%#Container.ItemIndex %>]">
<li>
<asp:Image ID="imgHLImage" runat="server" />
<h3><%# Eval("Title") %></h3>
<p><%# Eval("Body") %></p>
<p class="more"><asp:HyperLink ID="hpHighlightLink" runat="server" ></asp:HyperLink></p>
</li>
</span>
</ItemTemplate>
<FooterTemplate>
</ul>
</div>
</FooterTemplate>
</asp:Repeater>
I have tried to change the tags to the new format, and also changed 'IsMultiValued' to true and false
<!-- Start SiteEdit Component Field: {
"ID" : "_SE_FLD",
"XPath" : "tcm:Content/custom:SectionHomepage/custom:HighlightItems[<%#Container.ItemIndex + 1 %>]",
"IsMultiValued" : false
} -->
but this also doesn't allow adding or removing highlights
I am not using DWT templates, because of the custom framework. can someone provide me the rendered template code for a similar scenario