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
Hey all - Trying for the first time to create a couple of custom .NET controls for Umbraco, really quick question (And easy I suspect)
I have a variable in my XSLT file
$currentPage/data [@alias = 'headerText']
How would I do this in .NET?
Hi Lee,
umbraco.presentation.nodeFactory.Node.GetCurrent()
will get you the current page (node) being processed.
And use
umbraco.presentation.nodeFactory.Node.GetCurrent().getProperty('headerText')
to get the value for the property.
Cheers,
/Dirk
Add a public property to the UserControl, compile the project, upload the ascx to /usercontrols and the dll to the /bin folder
Go to the developer section, create a new macro, select the usercontrol, click the "BrowseProperties" button and see the magic of umbraco ;-)
(or add the property ba hand to the properties tab of the macro)
hth, Thomas
Ahh, misunderstood your question, thank god we have Dirk...
Thomas
Excellent thanks :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Newb API Question
Hey all - Trying for the first time to create a couple of custom .NET controls for Umbraco, really quick question (And easy I suspect)
I have a variable in my XSLT file
How would I do this in .NET?
Hi Lee,
will get you the current page (node) being processed.
And use
to get the value for the property.
Cheers,
/Dirk
Add a public property to the UserControl, compile the project, upload the ascx to /usercontrols and the dll to the /bin folder
Go to the developer section, create a new macro, select the usercontrol, click the "BrowseProperties" button and see the magic of umbraco ;-)
(or add the property ba hand to the properties tab of the macro)
hth, Thomas
Ahh, misunderstood your question, thank god we have Dirk...
Thomas
Excellent thanks :)
is working on a reply...