Thursday, 7 February 2013

Setting up preview application based on Discover Electronics Authoring Application

Setting up Lifestyle authoring application based on Discover Electronics Authoring Application

In my previous post, I have described the steps that need to be followed to create a new reference application(Lifestyle) based on the Discover-Electronics reference application. Having made any changes to the pages in lifestyle app in experience we would want to see how the page looks before promoting the content. That's where the preview application comes into pic. Clicking the preview button in the experience manager against each page designed in the experience manager opens up a new window depicting how the page looks with the changed configurations.

By default, when we create an Endeca application using discover-data, the preview settings are defines as below:

  • Preview URL - http://localhost:8006/discover-authoring
  • Link Service URL - http://localhost:8006/discover-authoring/link.json
Since we are using lifestyle application for application for any page changes, we shall focus on using lifesyle-authoring reference application for preview. Below are the steps to be followed to create a new authoring application based on discover-authoring reference application.

1. Navigate to C:\Endeca\ToolsAndFrameworks\3.1.1\referencedirectory, copy the 
discover-electronics-authoring reference application folder, paste it in the same directory and name it as lifestyle-authoring

2. Modify the following properties in file of lifestyle-authoring reference application

  • workbench.port=8006
  • workbench.publishing.serverPort=8007
  • mdex.port=18002
  • logserver.port=18010 

3. Navigate to ENDECA_TOOLS_CONF sub directory C:\Endeca\ToolsAndFrameworks\3.1.1\server\workspace\conf\Standalone\localhost, copy the
 discover-authoring.xml file, paste it in the same directory and rename it to lifestyle-authoring.xml and make the below changes

4. Under the preview settings for the lifestyle application in the experience manager, make the below changes
  • Preview URL : http://localhost:8006/lifestyle-authoring
  • Link Service URL : http://localhost:8006/lifestyle-authoring/link.json
5. Restart the EndecaToolsService

6. You should now be able to access http://localhost:8006/lifestyle-authoring reference application which is also the preview app that gets loaded when the preview button is used in the experience manager.



  1. Hi,
    I configured the lifestyle as you had mentioned in the steps.
    Am able to hit the application.I created some pages in Experience Manager, and even after doing promote content am not able to get the changes.
    Am getting "Unknown Error" page.
    But the same is getting reflected in lifestyle-authoring page.
    Please help me.

    Thank you.

  2. Hi,
    I am trying to configure preview for my application that is deployed on another server. In this case could you help me with configuration for Preview URL and Link Service URL?
    Many thanks,