Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
i need to retrieve CurrentNode's parentId in .net usercontrol and not using xslt..
here is the structure
root(Content)
--Home
---catergoryOne
--- subcat1a
-- subcat1b
--product(currentNode)
i need to retrieve catergoryOne nodeid(parentNode of product) using product(which is a currentNode).
here the subcat levels(it may be 1,2 or 5) may vary.. any pointers folks?
thank you
Hey Kevin,
I would recommend getting hold of Hendys API Helper class and using an XPATH statement http://blog.hendyracher.co.uk/umbraco-helper-class/ (this is now in uComponents)
Your xpath would just need to look up the tree until it found the correct categoryOne docType.
Rich
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
retrieve CurrentNode's parentId
Hello,
i need to retrieve CurrentNode's parentId in .net usercontrol and not using xslt..
here is the structure
root(Content)
--Home
---catergoryOne
--- subcat1a
-- subcat1b
--product(currentNode)
i need to retrieve catergoryOne nodeid(parentNode of product) using product(which is a currentNode).
here the subcat levels(it may be 1,2 or 5) may vary.. any pointers folks?
thank you
Hey Kevin,
I would recommend getting hold of Hendys API Helper class and using an XPATH statement http://blog.hendyracher.co.uk/umbraco-helper-class/ (this is now in uComponents)
Your xpath would just need to look up the tree until it found the correct categoryOne docType.
Rich
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.