Hi,
TS: 741 - Sitepubliser Incontext Edit Feature
I am trying to implement in-context edit for DCRs returned from my targetting component. I have path to DCR which i am passing to appearence XML to able to edit item. I have no luck with feature working for DCR path passed to it.
I get Edit enabled on in Page Edit for Item on component appearence, however nothing popsup when i click on same.
However i have same working for DCR Datum. ( This is default content when no dynamic result is returned ).
Here is what i have tried doing in my component.
<h2>
<!-- WORKS : This one works for Datum provided DCR -->
<span in-context-edit="{/Properties/Data/Group/Datum[@Name='HeroDCR']/@ID}" dcr-item-paths="/content/title">
<xsl:value-of select="//content/title"/>
</span>
</h2>
<h3>
<!-- FAILS :This doesnt work when i pass relative path to DCR and use attribute in-context-edit-type set to 'vpath' which is standard -->
<span in-context-edit="templatedata/page/hero-image/data/default" in-context-edit-type="vpath">
<xsl:value-of select="//content/title"/>
</span>
</h3>
I have tried all possibalities like select="/content/title" OR select="content/title".
The DCR(hero-image) i am using for test has just a Title Text field for now.
***********************************************
Please suggest , where i am doing wrong, i am following Sitepu Guide Page 110. Thanks in advance.
-Praveen