Ah, that makes more sense then. I was forced to use the same file structure in my front-end app with my change. Thanks Jasha! Jun
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jasha Joachimsthal Sent: Monday, February 16, 2009 11:53 PM To: Hippo CMS development public mailinglist Subject: Re: [HippoCMS-dev] fix to preview url from locationmap Hi Jun, the XSL was correct, but the documentation is unclear. With just the cms.preview.url property, the XSL should add the current document path to the value of the property. If you use the locationmap, you can define the url yourself in the locationmap. I've changed the page on hippocms.org to make it a bit more clear. Example: <match pattern="*:/content/subsite1/**.xml"> <location src="http://subsite1.yourCompany.com/{2}.html"/> </match> So if your document in the repository is at content/subsite1/myfolder/mydocument.xml the preview url will be http://subsite1/yourCompany.com/myfolder/mydocument.html Regards, Jasha 2009/2/13 <[email protected]> > Hi hippo, > > In hippo cms Branch-CMS-v6_05_xx, I found that when I configure multiple > preview url from locationmap[1], the preview button on explorer doesn't > contain the resource path (Similar problem to CMSSIX-196[2]). > > The fix is simple: > > editor/src/site/explorer/transformers/actionform/actions2template.xsl > editor/src/site/explorer/transformers/toolbarform/actions2template.xsl > <xsl:variable name="realPreviewUrl"> > <xsl:choose> > <xsl:when test="$previewUrl != ''"> > <xsl:value-of select="concat($previewUrl,$resourceId)"/> > </xsl:when> > <xsl:otherwise> > - <xsl:value-of select="previewUrlFromLocationmap"/> > + <xsl:value-of > select="concat($previewUrlFromLocationmap,$resourceId)"/> > </xsl:otherwise> > </xsl:choose> > </xsl:variable> > > > > Cheers, > > Jun > > > > [1] > http://www.hippocms.org/display/CMS/Configuring+multiple+preview+urls > > [2] > http://www.mail-archive.com/[email protected]/msg05368.htm > l > > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > > Searchable archives can be found at: > MarkMail: http://hippocms-dev.markmail.org > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html > > -- Jasha Joachimsthal [email protected] - [email protected] www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-5100 +1 (707) 773-4646 ******************************************** Hippocms-dev: Hippo CMS development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html ******************************************** Hippocms-dev: Hippo CMS development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
