Copied to clipboard

Flag this post as spam?

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


  • Eddie Foreman 215 posts 288 karma points
    Jul 14, 2010 @ 12:37
    Eddie Foreman
    0

    Check RadioBox Values

    Hi All

    I have an overview page, where I would like to list a number of items, which are child pages of the overview page.  The listed items will be listed according to the values of a RadioBox.  When setting up the RadioBox, the assigned values set are 12, 13, 14 and 15. Using database type Ntext.

        <xsl:for-each select="$currentPage/node [string(data [@alias='umbracoNaviHide']) != '1']">
          <xsl:if test="umbraco.library:GetPreValues($currentPage/node [@alias='itemType'] = '13')">
            <div class="fundType">
              <h2>
                <a href="{umbraco.library:NiceUrl(@id)}">
                  <xsl:value-of select="./data [@alias = 'title']" />
                </a>
              </h2>
              <p>
                <xsl:value-of select="./data [@alias = 'intro']" />
              </p>
            </div>
          </xsl:if>
        </xsl:for-each>

    With the above code, all of the child pages are listed, but the if statement with GetPreValues(...), does not seem to have any affect???  First time I've use the GetPreValues method, so not sure if this is the right approach?

    Thanks in advance

    Eddie

  • Eddie Foreman 215 posts 288 karma points
    Jul 14, 2010 @ 13:12
    Eddie Foreman
    0

    Hi All

    Got it, by updating the if statement to:

    <xsl:if test="./data [@alias='itemType'] = '15'"> ... </xsl:if>

    Could someone confirm if I could do the same thing with GetPreValues and if there are any benefits?

    Thanks

    Eddie

Please Sign in or register to post replies

Write your reply to:

Draft