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).
Hi,
Yes that is possible. Untested code, but something like this should work:
var url = page["PageShortcutLink"]; var contentReference = ContentReference.Parse(url); var pageId = contentReference.ID;
Hmm I think PageShortCutLink is a PageReference already, so you should be able to do:
var pageReference = page["PageShortcutLink"] as PageReference; var pageId = pageReference.ID;
Thank's, for some reason I always forget those properties that are not strongly-typed... :-)
Is it possible to get the id of the selected page when link type is "Fetch content from page in episerver cms"