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.
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.
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
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.
Version for 4.5.1?
Has anyone already adapated this to work with the new xslt format of 4.5.x ?
I have tweaked the getParentNodeIdFromXpath method to use the following new schema syntax in its replace instead of the //node approach:
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... ?
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.
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
Did you forget about publishing the new version or did you run into problems? :)
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
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
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.
is working on a reply...