|
|
Rank: Devotee
Joined: 10/14/2006 Posts: 33
|
Ok here are the facts :-) - If I have public property PageID in my .NET control - I created Macro that uses that control - I created property of that macro with same name as public property (PageID)
So, no I have something like that in my template
<?UMBRACO_MACRO macroAlias="LeftNavigation" PageID="[PAGEID_HERE]" ></?UMBRACO_MACRO>
So now, I wonder how to pass current page to my .NET control's property?
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 597 Location: Bad Homburg, Germany
|
I know that it is possible, but I can't find it. I think the solution was in the forum. Another thing is, that you can get the actual node in your ascx via umbraco.presentation.nodeFactory.Node.GetCurrent as node object or via umbraco.library.GetXmlNodeCurrent() as XPathNodeIterator where you can get all infos via xslt or xml. I prefer the first possibility, cause it gives you intellisense and so on... hth, Thomas
• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
|
|
Rank: Devotee
Joined: 10/14/2006 Posts: 33
|
Thanks I would also try to find this solution on forum since I must give option to client to change somethings, and doubt he can change things in ASCX :-)
Thanks
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 597 Location: Bad Homburg, Germany
|
|
|
Rank: Devotee
Joined: 10/14/2006 Posts: 33
|
Mate, you continue with saving my life :-) Thanks again.
|
|
|
Guest |