forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo" <leont...@tstt.net.tt>
Subject RE: Tabs definition in multiple folders?
Date Sun, 02 Nov 2003 00:51:43 GMT
Hi

The following default entry in the sitemap will always only
pick up tabs.xml in xdocs directory

     <map:match pattern="**tab-*.html">
        <map:generate src="content/xdocs/tabs.xml" />
        <map:transform type="linkrewriter"
src="cocoon:/{1}linkmap-{2}.html"/>
        <map:call resource="skinit">
          <map:parameter name="type" value="tab2menu"/>
          <map:parameter name="path" value="{1}{2}.html"/>
        </map:call>
      </map:match>

To get it to view the tabs.xml in say directory xdocs/A
then add the following entry before the original entry to the sitemap
	<!-- 2003-11-01                                                   -->
      <map:match pattern="*/**tab-*.html">
        <map:generate src="content/xdocs/{1}/tabs.xml" />
        <map:transform type="linkrewriter"
src="cocoon:/{1}linkmap-{2}.html"/>
        <map:call resource="skinit">
          <map:parameter name="type" value="tab2menu"/>
          <map:parameter name="path" value="{1}{2}.html"/>
        </map:call>
      </map:match>

2 things
-	the above will allow you to have an tabs.xml file in each sub-directory
directly
	under xdocs e.g xdocs/A

-	not sure exactly how to create the entry in tabs.xml which will get you
back
	to home page.



Leo

-----Original Message-----
From: DeSmet_Ringo@emc.com [mailto:DeSmet_Ringo@emc.com]
Sent: Friday, October 31, 2003 8:54 AM
To: forrest-dev@xml.apache.org
Subject: Tabs definition in multiple folders?


Hello,

I would like to have different tabs in my website, so I tried specifying
tabs.xml in the root and in the subfolders, but to no avail. Forrest only
seems to pick up my root tabs.xml. Is this possible?

E.g. in the root I want tabs named "A" and "B", but when I click "A", I
would like to see tabs "Aa" and "Ab".

Ringo




Mime
View raw message