Hi all,
I had written a Site Publisher component, in which i want to ask the user to select a value from a exposed drop down, so that it can be used as page metadata for my application.
For the same i had written the following as my Content XML
{Datum ID="D05" Type="SelectSingle" Name="Select Page Definition Id"}
{Option Selected="false"}
{Display}Dummy1{/Display}
{Value}1{/Value}
{/Option}
{Option}
{Display}Dummy2{/Display}
{Value}2{/Value}
{/Option}
{Option}
{Display}Dummy3{/Display}
{Value}3{/Value}
{/Option}
{/Datum}
In Appearance XSL, following was written to retreive the value:
{xsl:attribute name="pageDefinitionId" }
{xsl:value-of select="/Properties/Data/Datum[@Name='Select Page Definition Id']" /}
{/xsl:attribute}
The issue is when i place the component on page and tries to check the value in generated HTML, it displays the concatenated value of all option labels and values.
pageDefinitionId="Dummy11Dummy22Dummy33 Please guide me if i had done anything wrong or have to do some extra? Thanks.