4

I faced a XPM Session Preview problem.

That is, if "Publication Path" and "Publication URL" of publication property has different value, Session Preview doen't work.

Publication properties

Publication Path: \jp_ja

Publication URL: /jp/ja

Problem

Modification by In Line Edit disappears, and "Update the page preview" message appears again and again. This is a typical symptom of a Session Preview error.

If I only modify publication property and input same value on "Publication Path" and "Publication URL", then Session Preview works fine.

My questions are following:

  1. How can I make Session Preview work when "Publication Path" and "Publication URL" is different.

  2. Is there any description on Tridion manual about this issue, i.e. if "Publication Path" and "Publication URL" is different, Session Preview doesn't work?

1 Answer 1

5

You will need to configure the path to your site in the cd_dynamic_conf.xml file of your website.

  <Publication Id="99">
    <Host Domain="your-website.com" Port="80" Protocol="http" Path="/jp/ja" />
  </Publication>

There is an excellent question on this by Dominic here: What contribution does cd_dynamic_conf make to the workings of Experience Manager?

(Dominic also comments on the documentation issue too.)

6
  • My configration is same as you suggests. cd_dynamic_conf is <Publication Id="364"> <Host Domain="dev01" Port="80" Protocol="http" Path="/jp/ja"/></Publication>. And web site URL is "dev01/jp/ja". But still it doen't work. It's Storange. Commented Dec 16, 2013 at 13:20
  • Have you also configured this on your Session Preview web service (login required) Commented Dec 16, 2013 at 13:34
  • Yes, Session Preview web service(cd_preview_webservice)'s cd_dynamic_conf has same setting. XPM requests URL based on Publication Path, for example "dev01/jp_ja/pageA.html". I wish that XPM requests URL like "dev01/jp/ja/pageA.html". Commented Dec 16, 2013 at 14:33
  • Have you added the URL of your Staging website to the 'Session Preview' tab of the Staging Publication Target? This is described in step 6 of the Setting up publishing for Experience Manager (login required). Can you confirm whether the Session Preview web service is being called (from the IIS logs or the Tridion logs) and whether the Session Preview database is being populated? Commented Dec 16, 2013 at 15:35
  • Yes, Publication Target's Session Preview tab Website URLs contains "dev01/jp/ja". Also Content "Delivery Endpoint URL" is correct. In Session Preview web service DB, HTML source code modified on XPM is generated, this means Session Preview web service was called. And in the staging web site's log file, following log is output:"PathOptionMatcher - The Path DOES NOT match. Mapped path is [jp/ja] and extracted path is [jp_ja/products/test/index.jsp]." It seems XPM is using Publication Path, not Publication URL. Commented Dec 17, 2013 at 7:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.