Hi All,
I am facing an issue with in-context-edit feature of Livesite 2.2.1.
As per the LS 2.2.1 developer guide I have following code in my appearnce.xsl.
!--span in-context-edit="{/Properties/Data/Datum[
@Name='Title']/
@ID}">
!--xsl:attribute name="style">
!--xsl:apply-templates select="$titleFont" />
!--/xsl:attribute>
!--xsl:if test="$manualEntryGroup/Datum[
@Name='Title'] = ''">
!--xsl:value-of select="/Properties/Data/Datum[
@Name='Title']" />
!--/xsl:if>
!--xsl:if test="$manualEntryGroup/Datum[
@Name='Title'] != ''">
!--xsl:value-of select="$manualEntryGroup/Datum[
@Name='Title']" />
!--/xsl:if>
!--/span>
So, as per manual I am referring the datum id in span tag to enable in-context-edit.
The issue is, since In my content xml ,I have two fields called 'Title' one default and another for manual entry(as shown below), what happenes is whenevr I try editing the 'Title' in in-context-edit mode the changes happens in the default datum.Once I save the page and try editing it again it overwrites the changes made in in-context-edit mode by default datum value.
1)
!--Datum ID="D00" Name="Title" Type="String">Basic Text component
2)
!--Group ID="G01" Name="Manual Entry">
!--Datum ID="G01-D01" Name="Title" Type="String"/>
one of the option I can think of is to have conditional span tag...which does sound possible to me.
any hint?