Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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"