- InDesign
- InDesign connector (to match InDesign version)
- PXM
- ODG (release notes say it's only compatible with Sitecore 8.0 initial release, but that seems to be just referring to the SPEAK interface, you can still create items)
- InDesign Server (don't forget to activate your trial if you're using one)
- InDesign Server engine (to match InDesign server version)
- Dashboard service
- Processing Service
- Export (PXMPublishing) folder (still only available on the SDN site)
- Your custom fonts
Note: Unfortunately this setup can run multiple delivery servers (IaaS/PaaS), but will only really support one authoring server (IaaS) since there isn't really any way to balance the connections from delivery to the Dashboard/Processing/InDesign server side of things. InDesign Server comes in a single or multi-instance licence, and if you need to scale then the multi-instance option on one high-spec'd authoring server would probably be best.
Firstly it's important to set up and ensure that Sitecore on content authoring is working correctly with PXM, ODG, and InDesign Server. This functionality is "out of the box", but requires a lot of configuration which you can follow on the PXM youtube video series. There has been an updated release of some of the PXM connectors to support CC 2015 so ensure you're using the correct software version and connector version for your OS. The video series refers to the folder holding the exports / config / logs as PXMPublishing so that's what I will refer to it as here.
Once those pieces of software are setup, you should be able to:
- Import an InDesign document (through InDesign using the connector)
- Upload any media into the media library and replace the references in the PXM project so that they point to the media library rather than your hard drive (open the project through someone else's InDesign connector to verify)
- Create a document in ODG, replace various content / media, and preview it
- Export your document to PDF and preview the output PDF in the PXMPublishing/PublishFolder folder
- Sitecore logs
- PXM log (in with the rest of the Sitecore logs)
- Dashboard Server log (PXMPublishing/Logs/DashboardServer)
- Processing Server log (PXMPublishing/Logs/InDesignProcessingService)
- InDesign Server log (<InDesign Server directory>/Logs)
- Ensure your PXMPublishing folder is accessible from both the authoring and delivery servers (through a file share or Azure File Storage works)
- If you have a large amount of media (or very large media files) that you don't want to upload, ensure they're also in a shared location accessible from both servers (covered later in the blog)
- Ensure the dashboard service port (by default 8070) on the CA server is open to the CD server (via both Azure and Windows firewall)
- Ensure the InDesign server port (by default 8081) on the CA server is open to the CD server (via both Azure and Windows firewall)
- Ensure the dashboard server in the web.config on the CD server is pointing to the URL / port of the dashboard server running on the CA server
- Unfortunately a wrapper design controller will need to be created for the CD server to call the existing functionality. This wraps Sitecore.Odg.Controllers.DesignController.
- If you're going to be allowing users to grab the output PDFs from the server, ensure the virtual folder is mapped in IIS on the CD server
$.ajax({ dataType: 'json', url: '/api/sitecore/CustomDesign/GetCustomPreviewImage?&itemId=' + currentPageId + '&lang=en&forceNew=true&useHighRes=false&saveInPage=true', cache: false, success: function (response) { if (response.mediaUrl != null && response.mediaUrl != "") { updatePageThumbnail(response.thumbnailUrl); loadImageToCanvas(response.mediaUrl); } } });and
$.ajax('/api/sitecore/CustomDesign/ExportToPdf', { type: 'POST', data: {itemId: odgDocumentId, processingJobId: processingJobId, lang: language}, success: function (result) { alert('Successfully sent for conversion to PDF') }, error: function (result) { alert('Error saving. Please try again or contact us if the issue reoccurs.'); } });In the next blog we'll look into other customisations we can make to the process and pipelines to improve the user experience.
No comments:
Post a Comment