Re: Cocoon 2.1 web application base path

2012-05-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andy, On 5/16/12 12:36 PM, Andy Stevens wrote: > Hi Bob, > > Assuming you have the request input module in your cocoon.xconf, > then you can pass the context path into an xsl:param (or otherwise > use in the sitemap) with e.g. src="mytransform.xslt"

Re: Cocoon 2.1 web application base path

2012-05-17 Thread Bob Harrod
Including {request.contextPath} as a transform param did the trick, thanks! Is there any way to do this globally for all matches in the sitemap or does it have to be passed to each transform? - Bob On May 16, 2012 12:53 PM, "Bob Harrod" wrote: > Ok, thank you! I can look at the LinkRewriterTra

Re: Cocoon 2.1 web application base path

2012-05-16 Thread Javier Puerto
2012/5/16 Bob Harrod > Ok, thank you! I can look at the LinkRewriterTransformer. Since I'm new > to this, I have some follow up questions: > > 1. Is this a "plugin" that I have to install or does it exist in the stock > version of cocoon 2.1? > It's included as a block for cocoon-2.1 and it's

Re: Cocoon 2.1 web application base path

2012-05-16 Thread Bob Harrod
Ok, thank you! I can look at the LinkRewriterTransformer. Since I'm new to this, I have some follow up questions: 1. Is this a "plugin" that I have to install or does it exist in the stock version of cocoon 2.1? 2. The examples reference the transformer from a sitemap context. Is there a way t

Re: Cocoon 2.1 web application base path

2012-05-16 Thread Andy Stevens
Hi Bob, Assuming you have the request input module in your cocoon.xconf, then you can pass the context path into an xsl:param (or otherwise use in the sitemap) with e.g. Regards, Andy On 16 May 2012 06:02, "Bob Harrod" wrote: > I'm quite new to cocoon, and supporting an older version (2.1)

Re: Cocoon 2.1 web application base path

2012-05-16 Thread Javier Puerto
Hi Bob 2012/5/16 Bob Harrod > I'm rending html in a transform, and would like to render an anchor who's > href is absolute, not relative. For example, instead of this: > > ... > > I would like to be able to provide a full url in the href: > > http://mysite/application1/home";>... > > Thank you

Re: Cocoon 2.1 web application base path

2012-05-16 Thread Bob Harrod
I'm rending html in a transform, and would like to render an anchor who's href is absolute, not relative. For example, instead of this: ... I would like to be able to provide a full url in the href: http://mysite/application1/home";>... Thank you for your assistance with this! On Wed, May 16

Re: Cocoon 2.1 web application base path

2012-05-15 Thread Jos Snellings
Hi ! What are you trying to achieve? Jos On Wed, May 16, 2012 at 6:52 AM, Bob Harrod wrote: > I'm quite new to cocoon, and supporting an older version (2.1). Does > anyone know how I can gain access the web application base path inside of a > transform? Of course, it can be passed by the sit

Cocoon 2.1 web application base path

2012-05-15 Thread Bob Harrod
I'm quite new to cocoon, and supporting an older version (2.1). Does anyone know how I can gain access the web application base path inside of a transform? Of course, it can be passed by the sitemap... Any help would be appreciated! Thanks!