Home
TeamSite
in-context-edit
jana
Hi Everybody,
How to use in-context-edit. I want to edit the particular DCR in .page which has different components. Can anybody help me to do this.
Thanks in advance.
Find more posts tagged with
Comments
Rick Poulin
Last I checked, you can't do that. In-context-edit only works on datums which are embedded in the page. Unless anybody has specifically achieved this, I'd suggest you get an in-context-edit textarea working, and then switch the Datum type to DCR. However, even in the latest SP Dev doc, it implies that externalizing data to a DCR cannot be used in conjunction with in-context-edit.
It would be a nightmare as an IWOV developer trying to implement the feature you'd like to see. The DCR selection isn't fixed in the page, so they'd have to somehow AJAX-load the selected DCR and then go save it with all the locking and permissions headache wrapped around it. And then your user doesn't even realize that they might be editing the wrong DCR and **** up other pages without even knowing it. Even if this is possible, I would stay as far away from it just to avoid the brain pain.
bertve
Of course this is possible.
Use the documented attributes for in context editing.
<span in-context-edit="{/Properties/Data/Datum[
@Name=
'DESCRIPTION']/
@ID}"
dcr-item-paths="/Newsletter/Section/Description">
<xsl:value-of select="Description" disable-output-escaping="yes"/>
</span>