On Tue, 2005-03-15 at 10:08 +0000, Ross Gardler wrote:
Thorsten Scherler wrote:
On Mon, 2005-03-14 at 12:12 +0000, [EMAIL PROTECTED] wrote:
I need some input on the following:
+<!--This should be match to the conf dir but I do not know �how? + {project:conf-dir} does not work -> ask on ml! + For now that matches the default.fv in the xdocs dir. + The problem with this solution is that the a default.xml will be always render with the default view. + Not too bad of a problem after all ;-)-->
Where do we define this global variables?
Do you mean where do we define *new* global variables that can be set in forrest.properties? If so the answer is cocoon.xconf.
hmm, ok, I tried: Index: main/webapp/WEB-INF/xconf/forrest-core.xconf =================================================================== --- main/webapp/WEB-INF/xconf/forrest-core.xconf (revision 157530) +++ main/webapp/WEB-INF/xconf/forrest-core.xconf (working copy) @@ -139,6 +139,7 @@ <doc>@project.home@/@project.content-dir@/</doc> <content>@project.home@/@project.raw-content-dir@/</content>
<content.xdocs>@project.home@/@project.xdocs-dir@/</content.xdocs> + <conf-dir>@project.conf-dir@</conf-dir>
<translations>@project.home@/@project.translations-dir@</translations> <resources.stylesheets>@project.home@/@project.stylesheets-dir@/</resources.stylesheets>
<resources.images>@project.home@/@project.images-dir@/</resources.images>
...but I could not find any target that would do e.g. <replacetoken>@project.home@</replacetoken>
Can you please give me another hint how to use {project:conf-dir} within my output.xmap
I'm guessing you mean something like:
<map:generate src="{project:conf-dir}/default.fv"/>If so, my original reply was spot on: Do you mean where do we define *new* global variables that can be set in forrest.properties?
You now need to set the value you want in forrest.properties:
project.conf-dir=${project.content-dir}/confEverything else happens automatically.
If this isn't what you are trying to do then it really would help my fuzzy early morning brain if you provided a code snippet of what you want to do - I wouldn't have to think before my morning brew ;-) (my head hurts this morning - sorry)
Ross
