forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenz Froihofer <>
Subject Re: [PATCH] normalize hrefs in site before selecting entries for tab
Date Fri, 14 May 2004 08:44:41 GMT
Latest SVN version still has the same behaviour. The issue is that the 
incoming request path is compared to the specified path in the site.xml. 
  As the path in the site.xml is not normalized, the starts-with 
comparison fails and the menu entries for all tabs are shown.

Try the following setup:

   <category1 tab="tab-1" href="category1/" label="Category 1">
     <entry1 label="My Entry 1" href="entry1.html" />
     <entry2 label="My Entry 2" href="../dir-entry2/entry2.html" />
   <category2 tab="tab-2" href="category2/" label="Category 2">
     <entry3 label="My Entry 3" href="dir-entry3/entry2.html />

A request to entry1.html shows the menu corresponding to tab-1. A 
request to entry3.html shows the menu corresponding to tab-2. But: a 
request to entry2.html show the menus of tab-1 and tab-2.

The reason is that entry2.html has at the time of comparison in 
resources/stylesheets/site2site-selectnodes.xsl the value 
"category1/../dir-entry2/entry2.html" which is different to the 
incomming request to "dir-entry2/entry2.html". Therefore, the comparison 
by using the starts-with() function fails and it cannot be found that 
entry2.html belongs to tab "tab-1".

-- Lorenz.

Juan Jose Pablos wrote:
> Lorenz Froihofer escribió:
>> By the way, the menu.xmap patch was applied to the version contained 
>> in the 0.5.1 release.
> I have not been able to reproduce this error on our latest release. 
> Would it be possible to test your setup with todays SVN version?

View raw message