you don't need to do that, you can use the umbraco.library.NiceUrl(id) from within your user control. All you need is pass the id of the node through the macro to your user control using a parameter with value [#pageID] (for current page) or your own id (Make sure the alias of the parameter equals the name of the property on the user control). Actually, you don't have to pass in the id of the current node as this can also be retrieved through
sending NiceUrl to macro .. howto?
i need to send my NiceUrl - based on either my currentPage or an ID that i set - to my maco wich contains a userControl (which has some properties) ..
how does one go about doing this? :-)
Jonas,
you don't need to do that, you can use the umbraco.library.NiceUrl(id) from within your user control. All you need is pass the id of the node through the macro to your user control using a parameter with value [#pageID] (for current page) or your own id (Make sure the alias of the parameter equals the name of the property on the user control). Actually, you don't have to pass in the id of the current node as this can also be retrieved through
in your user control.
Hope this helps.
Regards,
/Dirk
is working on a reply...