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
In the middle of constructing a custom datatype using the usercontrol wrapper where I need to reference the parent of the document the datatype currently is on. Anyone know how to go about this?
You might like to look at the source of this project, as this has this functionality using $CurrentNodeId
http://our.umbraco.org/projects/backoffice-extensions/tribal-xpath-node-relations
Rich
Hi Anders,
You could use, where Data is the IData object
return
((umbraco.cms.businesslogic.datatype.DefaultData)(Data)).NodeId;
Hope this helps you,
Richard
Oh sorry,
See that you are using the ControlWrapper don't know if that holds the IData object... Think not, In that case just use Request.Queystring["id"];
Cheers,
Thanks Richard,
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
Current document, in admin?
In the middle of constructing a custom datatype using the usercontrol wrapper where I need to reference the parent of the document the datatype currently is on. Anyone know how to go about this?
You might like to look at the source of this project, as this has this functionality using $CurrentNodeId
http://our.umbraco.org/projects/backoffice-extensions/tribal-xpath-node-relations
Rich
Hi Anders,
You could use, where Data is the IData object
return
((umbraco.cms.businesslogic.datatype.DefaultData)(Data)).NodeId;
Hope this helps you,
Richard
Oh sorry,
See that you are using the ControlWrapper don't know if that holds the IData object... Think not, In that case just use Request.Queystring["id"];
Cheers,
Richard
Thanks Richard,
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.