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: a href=../home.../a I would like to be able to provide a full url in the href: a href=http://mysite/application1/home;.../a Thank you for your assistance

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. map:transform src=mytransform.xslt map:parameter=xslParamName ={request:contextPath}/ /map:transform Regards, Andy On 16 May

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 to

Re: Cocoon 2.1 web application base path

2012-05-16 Thread Javier Puerto
2012/5/16 Bob Harrod rjhar...@gmail.com 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