Copied to clipboard

Flag this post as spam?

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


  • KsuValk 32 posts 52 karma points
    Jul 31, 2010 @ 20:23
    KsuValk
    0

    Version for 4.5.1?

    Has anyone already adapated this to work with the new xslt format of 4.5.x ?

  • KsuValk 32 posts 52 karma points
    Aug 03, 2010 @ 15:20
    KsuValk
    0

    I have tweaked the getParentNodeIdFromXpath method to use the following new schema syntax in its replace instead of the //node approach:

    string.format("//*[@isDoc][@id={0}]", currentNodeId)

    I took the same approach with tweaking the $currentParent replace code.

    I copied in the 3 umbraco dlls from the latest 4.5.1 build (from my localhost site) and rebuilt the solution.  I then copied the axeno dll and pdb file to my c:\inetpub\wwwroot\bin folder.

    Then I set a new datatype with the axenda as the render control.  I set it to a dropdownload.  I set the XPath value to $currentPage/@id.  Then I place that data type on a content item that I know has 3 documents underneath it.  I just so happen to also have an ultimate picker data type on this same content item so I can test each.

    Unfortunately when I go to the content tree and view that content item, the ultimate picker has the 3 sub-items listed but the axenda data type shows nothing.  Not even an empty drop-down list.

    I must be doing something wrong... ?

  • KsuValk 32 posts 52 karma points
    Aug 03, 2010 @ 15:35
    KsuValk
    0

    Stupid mistake!  The XPath you enter should NOT include the @id attribute.  Looks like it should just be a node, and the SelectSingleNode logic does a GetAttribute of the @id for you.  In the test above, changing the XPath to @currentPage works.

    I'll tweak the source to work in both old and new schema, and try to make it available.

    Thx.

  • Ron Brouwer 273 posts 768 karma points
    Oct 28, 2010 @ 12:12
    Ron Brouwer
    1

    For your info:

    I have a new version for umbraco 4.5.* which also selects from unpublished nodes.

    I'll update the package asap.

    Ron

  • Johan Möller 83 posts 137 karma points
    Nov 29, 2010 @ 16:17
    Johan Möller
    0

    Did you forget about publishing the new version or did you run into problems? :)

  • Jordi 25 posts 47 karma points
    Jan 19, 2012 @ 14:05
    Jordi
    0

    Hello

    I am trying to use this datatype for V4.7.1 but I've seen that ther is no version.

    In case no new version is planned, do you know any solution to be used for multilingual sites. I've checked Berto Ultimate Pciker but neither works for 4.7.1

    Thanks

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jan 19, 2012 @ 14:08
    Jeroen Breuer
    0

    I think most of this stuff has been added to uComponents. For example have a look at these:

    XPath CheckBoxList

    XPath DropDownList

    Multi-Node Tree Picker (also has XPath for start node support)

    Jeroen

  • Jordi 25 posts 47 karma points
    Jan 20, 2012 @ 23:21
    Jordi
    0

    I have used XPathDropdownList and is perfect substitution for Ultimate Picker in a multilingual tree. It works perfect. You just have to write the Xpath correctly. Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft