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
You can hover over the page in edit mode and you will see the ID of it.
For the scheduled job, create a content reference based on the id.
Use IContentRepository to move page(s) (remember that you will need to impersonate a user if you want to move pages. Scheduled job runs as anon user when run automatically)...Not that you asked for it but that will likely be your next error to solve :)
PrincipalInfo.CurrentPrincipal = PrincipalInfo.CreatePrincipal("system.user");
I have a page in episerver Edit mode..i want to move that page to a different folder if the page is 6 months older..i want to create a schedule job for the same.
But i am not sure how to get the location of the source page(the page which is in edit mode)