Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Sep 21, 2010 @ 15:25
    Ismail Mayat
    0

    Multi tree nodepicker xslt issue

    Shannon,

    I am using the latest source from codeplex and i am getting an issue in xslt.  Basically if i do the following in xslt:

    <xsl:copy-of select="$currentPage/productsOffered/MultiNodePicker/nodeId"/>

    I dont get anything.  However if I do 

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

     

    I get

    <MultiNodePicker>
      <nodeId>1217</nodeId>
      <nodeId>1306</nodeId>
      <nodeId>1328</nodeId>
    </MultiNodePicker>

    Am i missing a trick here?

    regards

    Ismail

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Sep 21, 2010 @ 15:40
    Lee Kelleher
    0

    Hey Ismail,

    That's strange. What do you get when you output:

    <xsl:copy-of select="$currentPage/productsOffered/MultiNodePicker" />

    Have you tried to loop through the nodeId nodes yet? See the XSLT example on CodePlex:

    http://ucomponents.codeplex.com/wikipage?title=MultiNodeTreePicker

    Cheers, Lee.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Sep 21, 2010 @ 15:59
    Ismail Mayat
    0

    Lee,

    Tried that as well. I just updated the datatype to store as csv and i get csv list which was what i was trying to create anyways.  Not sure if its a bug but it looks like it was rendering literal I even tried using node-set to no avail.

    Regards

    Ismail

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Sep 21, 2010 @ 16:03
    Lee Kelleher
    0

    When you say latest from CodePlex, do you mean the v2.0 branch? (just checking)  I haven't tested MNTP from there - so not sure if Shannon has changed anything.

    If you wanted to be sure, check the value in "umbraco.config" - see if its wrapped in CDATA tags? (it shouldn't be)

     

    To be honest, I think MNTP should only provide a CSV of the nodeIds - the XML is a bit overkill IMHO. (I'll discuss it with Shannon)

    Cheers, Lee.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Sep 21, 2010 @ 17:40
    Ismail Mayat
    0

    Lee,

    Updated to csv and i get the value now.  There may be method to the madness in Shannons mind for having xml ? Now next point trying to figure out why the hell a property of type multinode picker set to csv does not appear in my index?  I get the property but no values even though they are there and no errors in umbraco log!!!

    Ismail

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Sep 22, 2010 @ 08:40
    Shannon Deminick
    0

    xml works for me, i'm using it now, exactly like the wiki article says.

    Sounds like you got some weirdness going on :)

     

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Sep 22, 2010 @ 09:25
    Ismail Mayat
    0

    Shannon,

    Are you indexing the property?

    Regards

    Ismial

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Sep 22, 2010 @ 09:57
    Shannon Deminick
    0

    haven't looked into an examine index for it, but it's just a value so should go in. If stored as XML, it probably won't go in though.

    Xml was the idea of other umbracians for easier querying in xslt without having to use the Split method.

     

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Sep 22, 2010 @ 10:02
    Ismail Mayat
    0

    It doesnt seem to go in as xml or csv. I can understand not going in as xml but csv should go in?  Im not using the property so not really an issue at moment.

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft