I am setting up some Page Types for use in creating new pages via Experience Manager (XPM). You can optionally specify a Page Type Example URL which shows a preview of how the page will look to help editors determine whether this is the right page type to create for their needs. It seems that this needs to be a full URL (including domain/protocol eg:
Is it possible to somehow get this working with a url relative to the publication site root url (eg
/news/article.html) or specify a (managed) link to the page (
tcm:12-123-64) which would then result in the equivalent page on the local site you are creating the page in being previewed? This would enable my page types to not contain environment specific urls, give a different preview depending on blueprint context and also prevent issues if the page was moved (in the case we used a URI).
A second option that would work well for me is that the preview url defaults to the URL/URI of the Page Type page itself. I would publish all Page Types pages to staging only, and use these as the preview examples - this would be much more stable as Editors would not be able to move or unpublish these. I guess I could use the event system to auto-populate the Page Type Example URL (is this app data?), but again I would want this to be without the domain, or the URI of the page rather than a URL.