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
I am traversing the nodes to get the node I want within a partial:
//Get settings from Ancestor Language Node var langPage = CurrentPage.AncestorOrSelf("lang"); var emailTo = langPage.GetPropertyValue("emailAddressTo", "fallback").ToString();
My question that I have an email helper class used to handle the smtp stuff.
This also needs access to this node but obviously I don't have access to CurrentPage.
Is there another way to search up the tree from current, find a node with doctype "lang" from an extension class?
Any help gratefully received.
How do you use your extension class? Could you post the code?
But I would probably pass CurrentPage as a variable to your email method....
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Calling CurrentPage.AncestorOrSelf from an extension class
I am traversing the nodes to get the node I want within a partial:
My question that I have an email helper class used to handle the smtp stuff.
This also needs access to this node but obviously I don't have access to CurrentPage.
Is there another way to search up the tree from current, find a node with doctype "lang" from an extension class?
Any help gratefully received.
How do you use your extension class? Could you post the code?
But I would probably pass CurrentPage as a variable to your email method....
is working on a reply...