Rank: Newbie
Joined: 1/10/2008 Posts: 1
|
Hi there
I am coding some action handlers. The problem I have is I would like to get a reference to the parent documentobject of the documentobject that is passed in as a parameter to the execute function of the action handler.
However the parent property of the documentobject is a cmsnode. I want to create a documentobject from this parent node or get a reference to the documentobject of this cmsnode but I can't figure out how.
Please help.
Thanks in advance.
|
Rank: Newbie
Joined: 3/17/2008 Posts: 9
|
I solved this by creating a new instance of the Document class using the Id property of the CMS node: Code:
Document parent = document.Parent.Id;
|
Rank: Newbie
Joined: 2/26/2007 Posts: 10 Location: Slovenia
|
This will work: Code:Document d = new Document(cmsNode.Id)
|