I'm writing a single page application and would like to know how to get the preview mode working.
By default, the preview requests seems to be targeted tobaseUrl/{contentId}.aspx?culture={culture}. Do I have any way to control this route?
When fetching content, is it enough to use UmbracoContext.Content.GetById(true, id) and pass the umbraco cookies along with the request to get the user's preview version of the page?
Wiring up preview with a single page application
I'm writing a single page application and would like to know how to get the preview mode working.
By default, the preview requests seems to be targeted to
baseUrl/{contentId}.aspx?culture={culture}
. Do I have any way to control this route?When fetching content, is it enough to use
UmbracoContext.Content.GetById(true, id)
and pass the umbraco cookies along with the request to get the user's preview version of the page?is working on a reply...