Currently if there is no controller associated for a pagetype, pages created from that pagetype cannot be used in properties LinkItemCollection and ContentReference. Is there a way we can modify those pagetypes so that they can be used in those properties?
This is kinda annoying.One way to get around this is of course to do a controller for them and just show it in edit mode. If user tries to access it, you can throw a 404 or just redirect to the parent page.
Sadly you can't apply the wish to automatically display forms edit on these pages since it will accually have a renderer.
only pages without template will trigger the form edit automatically.
Thanks guys, you understood it right.
I will be bit more clear here. I do not want to have controller and view for this pagetype because these pages doesn't need to be available on the wesite but just hold data in edit mode and these should take editors directly forms edit mode.
Because this pagetype doesn't have a template associated, those pages cannot be added to a LinkItemCollection or a ContentReference property. But I want to have this ability for those pages somehow.
I wonder if there is a way to achieve this by implementing a special interface or something on this pagetype.
Maybe you can listen to the LoadingPage event and set the page's HasTemplate property to true, but that might stop loading the forms edit view as well.
I think my first approach is the best, that also gives the user the best experience. EPiServers default error page for pages without a template is quite bad.