无法在新UI实现中编辑组件链接字段标题?

时间:2012-12-27 08:18:27

标签: tridion tridion-2011 siteedit tridion-ui

以下是代码片段。

<a class="link-display"  target="_self"  onclick="doLink('TaggingMetaData:banner;bannerTitle:PRO_Simple Promo;bannerId:64-90667;;url:/newSiteEditSP1/newpagetest.html;urlTarget:_self;urlType:internal;linkTitle:Simple Promo with component link;popupparams:;siteEdit:2;Segments1:;Segments2:;Segments3:;Segments4:');return(false);" onkeypress="doLink('TaggingMetaData:banner;bannerTitle:PRO_Simple Promo;bannerId:64-90667;;url:/newSiteEditSP1/newpagetest.html;urlTarget:_self;urlType:internal;linkTitle:Simple Promo with component link;popupparams:;siteEdit:2;Segments1:;Segments2:;Segments3:;Segments4:');return(false);" href="/newSiteEditSP1/newpagetest.html?WT.ac=PRO_Simple+Promo_64-90667_T90672-NE-newsiteeditsp1&oc_id=PRO_Simple+Promo_64-90667_T90672-NE-newsiteeditsp1" >
  <span>
    <!-- Start SiteEdit Component Field: {"XPath" : "tcm:Content/custom:Content/custom:Links[2]/custom:Title"} -->
    Simple Promo with component link
  </span>
</a>

1 个答案:

答案 0 :(得分:6)

这不会像

那样有用
<!-- Start SiteEdit Component Field: {"XPath" : "tcm:Content/custom:Content/custom:Links[2]/custom:Title"} -->

您必须为组件链接组件创建siteedit组件表示标记,然后使用类似

  <span>
     <!-- Start SiteEdit Component Presentation: {"ID" : "cp_uniqueid", "ComponentID" : "component link component id", "ComponentTemplateID" : "templateid", "Version" : 3, "IsQueryBased" : true  } -->
      <span>
   <!-- Start SiteEdit Component Field: {"XPath" : "tcm:Content/custom:Content/custom:Title[1]"} -->
        Simple Promo with component link
      </span>
     </span>

希望有所帮助......

由于