Copied to clipboard

Flag this post as spam?

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


  • Seyfullah Tıkıç 23 posts 43 karma points
    Mar 05, 2011 @ 09:07
    Seyfullah Tıkıç
    0

    I want to test a True/False typed value

    Hello,

    I have an xslt like this.

      <xsl:variable name="parentOfCurrentPage" select="$currentPage/parent::*[@isDoc]" />
     
      <xsl:if test="$parentOfCurrentPage/listNearPages = 1"

    listNearPages is a True/false property. But I cannot get any value from this.

    What is wrong?

    Thanks.

     


  • Kim Andersen 1447 posts 2196 karma points MVP
    Mar 05, 2011 @ 09:25
    Kim Andersen
    0

    Hi Seyfullah

    Do you get anything returned if you do like this:

    <xsl:value-of select="$currentPage/../listNearPages" />

    /Kim A

  • Seyfullah Tıkıç 23 posts 43 karma points
    Mar 05, 2011 @ 09:37
    Seyfullah Tıkıç
    0

    No, I don't.

  • Kim Andersen 1447 posts 2196 karma points MVP
    Mar 05, 2011 @ 09:43
    Kim Andersen
    0

    Could you try outputting this:

    <textarea>
    <xsl:copy-of select="$currentPage/.." />
    </textarea>

    And copy in here the content of the textarea.

    /Kim A

  • Seyfullah Tıkıç 23 posts 43 karma points
    Mar 05, 2011 @ 10:24
    Seyfullah Tıkıç
    0

    <xml version="1">

      <grouppage id="1104" parentid="1063" level="2" writerid="0" creatorid="0" nodetype="1059"

          template="1050" sortorder="5" createdate="2011-02-17T16:26:17" updatedate="2011-03-05T09:21:10"

          nodename="" urlname="yallkta-aktif-yaam" writername="admin"

          creatorname="admin" path="-1,1063,1104" isdoc="">

        <bodyText></bodyText>

        <umbracoRedirect />

        <listSubPages />

        <isListWithPictures />

        <listNearPages />

        <umbracoNaviHide>0</umbracoNaviHide>

        <groupPage id="1239" parentID="1104" level="3" writerID="0" creatorID="0" nodeType="1059" template="1050" sortOrder="5" createDate="2011-03-05T09:17:01" updateDate="2011-03-05T09:21:13"

                   nodeName="" urlName="goenuellueler" writerName="admin" creatorName="admin" path="-1,1063,1104,1239" isDoc="">

          <bodyText></bodyText>

          <umbracoRedirect />

          <listSubPages />

          <isListWithPictures />

          <listNearPages />

          <umbracoNaviHide />

          <umbTextpage id="1126" parentID="1239" level="4" writerID="0" creatorID="0" nodeType="1061" template="1221" sortOrder="1" createDate="2011-02-17T17:13:10" updateDate="2011-03-05T09:21:14"

                       nodeName="" urlName="umut-koepruesue" writerName="admin" creatorName="admin" path="-1,1063,1104,1239,1126" isDoc="">

            <summary></summary>

            <introducerPicture />

            <bodyText>

            </bodyText>

            <umbracoNaviHide>1</umbracoNaviHide>

          </umbTextpage>

        </groupPage>

      </grouppage>

    </xml>

  • Kim Andersen 1447 posts 2196 karma points MVP
    Mar 05, 2011 @ 11:14
    Kim Andersen
    1

    Ahh now it makes sense.

    As you can see, the listNearPages field is empty. could you try to republish your content and check again. whenever you add a new property to your document types, always remember to republish the site before the new fields can be used.

    /Kim A

  • Seyfullah Tıkıç 23 posts 43 karma points
    Mar 07, 2011 @ 10:10
    Seyfullah Tıkıç
    0

    Ok. Thanks.

    xsl:copy-of is very usefull.

  • Kim Andersen 1447 posts 2196 karma points MVP
    Mar 07, 2011 @ 10:21
    Kim Andersen
    0

    Yes, it's very powerfull in some situations :)

    Did you get your problem solved then?

    /Kim A

  • Seyfullah Tıkıç 23 posts 43 karma points
    Mar 07, 2011 @ 10:27
    Seyfullah Tıkıç
    0

    Yes, it is solved.

    Thank you :)

  • Kim Andersen 1447 posts 2196 karma points MVP
    Mar 07, 2011 @ 10:45
    Kim Andersen
    0

    Great to hear Seyfullah. 

    If you could mark one of the answers as the solution, it would be great :)

    /Kim A

  • Seyfullah Tıkıç 23 posts 43 karma points
    Mar 07, 2011 @ 10:51
    Seyfullah Tıkıç
    0

    I would mark but I can't do that for now :(

    Because I don't have enough Karma. :(

    You cannot vote yet

    You need at least 70 karma points to be able to rate items on our.umbraco.org

    You gain karma points every time you do something constructive, like answering topics on the forum, or starting new ones or publishing your work as a project

     

     

  • Kim Andersen 1447 posts 2196 karma points MVP
    Mar 07, 2011 @ 10:56
    Kim Andersen
    0

    Ahh yeah I know that you can't vote yet, but under each answer there's a small green tick that you can click for marking an answer as the solution. You can do this no matter how much karma you've got.

    /Kim A

  • Seyfullah Tıkıç 23 posts 43 karma points
    Mar 07, 2011 @ 11:02
    Seyfullah Tıkıç
    0

    Ok, I have seen it at last, it is too small to see :)

Please Sign in or register to post replies

Write your reply to:

Draft