I have a custom content type with a custom field of type TEXT.
This field contain a URL that starts with protocol DynamicsNav: so sharepoint does not permit to manage this field as a standard “safe” hyperlink field.
This field is rendered through a XSL Template and is represented by a fixed text.
<xsl:template match="FieldRef[@Name='DSErpHyperlink']" mode="Text_body">
<xsl:param name="thisNode" select="."/>
<a>
<xsl:attribute name="href">
<xsl:value-of select="$thisNode/@DSErpHyperlink" disable-output-escaping="yes" />
</xsl:attribute>
Open
</a>
Field DSErpHyperlink Contains
dynamicsnav://servername:7041/ServiceName/CRONUS Italia S.p.A./runpage?page=30&bookmark=224;GwAAAACJBDEwMDE=&mode=Create
But is rendered with double amp; so doesn’t works.
<a href="dynamicsnav://servername:7041/ServiceName/CRONUS Italia S.p.A./runpage?page=30&amp;bookmark=224;GwAAAACJBDEwMDE=**&amp;**mode=Create"> Open</a>
Someone can help me ?
SOLVED !
This works
Instead of this that doesn’t work
Because disable-output-escaping is not working for attributes I think