I have added a property to an already existing document type (bool). The property shows up in the content editor. However my xslt script does not see it. I have republished the entire site, I have unpublished and republished the specific content and still no data item in my xslt, what else can I evaluate to see what is causing my problem?
Guess I just needed a fresh night to ponder it. The if statement test is in the wrong order instead of "$blog/node[string(data[@alias='hideBlogName']) != '1']" it should have been "string($blog/data[@alias='hideBlogName']) != '1'"
Document type not holding property
Hello All,
I have added a property to an already existing document type (bool). The property shows up in the content editor. However my xslt script does not see it. I have republished the entire site, I have unpublished and republished the specific content and still no data item in my xslt, what else can I evaluate to see what is causing my problem?
thanks.
Can you show the XSLT that doesent see the proprty ?
Sure, thoufh if I do a simple value-of I still don't get a value. Anyway here it is.
<xsl:if test="$blog/node[string(data[@alias='hideBlogName']) != '1']">
<h1><a href="umbraco.library:NiceUrl($blog/@id)">
<xsl:value-of select="$blog/data [@alias = 'blogName']"/>
</a></h1>
<div class="description">
<xsl:value-of select="$blog/data [@alias = 'blogDescription']"/>
</div>
</xsl:if>
Guess I just needed a fresh night to ponder it. The if statement test is in the wrong order instead of "$blog/node[string(data[@alias='hideBlogName']) != '1']" it should have been "string($blog/data[@alias='hideBlogName']) != '1'"
Thanks for the efforts though.
is working on a reply...