How do you create a document object from a cmsnode Options
LukeGreen
Posted: Thursday, January 10, 2008 12:15:42 PM
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.
paul.symes
Posted: Monday, March 17, 2008 5:53:28 PM
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;



primoz
Posted: Wednesday, March 26, 2008 2:15:17 PM
Rank: Newbie

Joined: 2/26/2007
Posts: 10
Location: Slovenia
This will work:
Code:
Document d = new Document(cmsNode.Id)
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.