Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
public override void InitializeData(ApplicationConfiguration config, PropertyDataCollection properties)
{
if (!properties["PageLink"].IsNull)
_prPage = (PageReference)properties["PageLink"].Value;
else
_prPage = (PageReference)properties["PageParentLink"].Value;
base.InitializeData (config, properties);
}
But what I have found is when the page is first created (not saved) "PageLink" does not have a value, but obviously "PageParentLink" does. However, after having a look at the collection of properties in the properties parameter, the new pages folder id is populated "PageFolderID". You could take that ID and do what you need to with the folder.
Hope this helps,
Jeremy