The contact form is a usercontrol which is used on all pages. The macro parameters would get the email to, subject, etc... Normally I would do this using resursive parameters :
As far as I know, it is not currently possible to specify/define which node the macro parameters get their values from. You would need to do that inside the macro itself.
In contrast the <umbraco:Item> actually has a "NodeId" parameter which sets the context of the "Item" / value. Something like that might be useful for the Macro control/tag too.
Macro Parameters from another level 1 node
Hi All,
I have a site which has the following stucture:
Home
site pages
...
Settings
contact form
The contact form is a usercontrol which is used on all pages. The macro parameters would get the email to, subject, etc... Normally I would do this using resursive parameters :
The above approach takes me to the home node. I was wondring if it's possible to traverse to the root node, then down the settings node.
Thanks,
Eddie
Hi Eddie,
As far as I know, it is not currently possible to specify/define which node the macro parameters get their values from. You would need to do that inside the macro itself.
In contrast the <umbraco:Item> actually has a "NodeId" parameter which sets the context of the "Item" / value. Something like that might be useful for the Macro control/tag too.
Cheers, Lee.
Hi Lee,
Thanks for the info. Ending up using the Node API route to gain access to the required data.
Cheers,
Eddie
is working on a reply...