The Alchemy DXA Page Preview plugin allows you to preview a DXA page inside the CME without publishing the page to the content delivery server.
The standard page preview of a DXA pageÂ is not particularly usefulÂ to a content editor:
The DXA plugin adds an additional item to a page’s context menu, “Preview Page in DXA” andÂ shows a preview windowÂ that is actually representative of the DXA website.
The plugin requires that you are running a DXA website with network access to the Tridion core service. The DXA website must also be able to run as an impersonation user with access to the CME.
First install the Alchemy DXA plugin.
NextÂ set upÂ your DXA website. You can either modify an existing staging website that has network access with a CME impersonation userÂ to the Tridion Core Service or create a new DXA website in your preview environment. If you go down the later pathÂ you can add a “Preview” publishing target if you want to be able to push out updates to your DXA website through the CME though this isn’t needed.
The DXA preview plugin requires a customisedÂ “DD4T.Providers.SDLTridion2013.dll” that you can download here. This DLL replaces the standard DXA DD4T.Providers.SDLTridion2013.dll in your DXAÂ websiteÂ andÂ renders your page using content and templates pulled fromÂ the Tridion Core Service andÂ the Content Delivery Database for other dynamic content on the page.Â The DXA preview functionality will only be activated if the “?preview=true” flag is passed to the website otherwise theÂ website pulls dynamic content from the content delivery database as normal.
Once you have the plugin installed and yourÂ DXA website up and running you just need to update the a4t.xml fileÂ on your CME at
Update theÂ DXAPreviewApplicationUrl setting with the URL of your DXA preview application that you just set up.
And that’s it, you’re good to go. Enjoy previewing your DXA pages in all their non-published glory.