Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • radmanmm 117 posts 108 karma points
    Sep 27, 2009 @ 17:04
    radmanmm
    0

    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.

  • Mikael Mørup 297 posts 326 karma points
    Sep 27, 2009 @ 18:32
    Mikael Mørup
    0

    Can you show the XSLT that doesent see the proprty ?

  • radmanmm 117 posts 108 karma points
    Sep 29, 2009 @ 03:04
    radmanmm
    0

    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>

     

     

  • radmanmm 117 posts 108 karma points
    Oct 01, 2009 @ 04:53
    radmanmm
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft