You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Carlos Palol <ca...@monkeyproject.net> on 2005/10/06 18:32:49 UTC

Wrong links on tabs at search page

Hi, sorry if this is obvious, i'm starting to work with lenya/cocoon.

Having this excerpt of my live sitetree:

<node id="index">
     <label xml:lang="es">Inicio</label>
     <label xml:lang="ca">Inici</label>
</node>

<node id="about" visibleinnav="true">
     <node id="expansion" visibleinnav="true">
         <label xml:lang="es">Expansión</label>
     </node>
</node>

<node id="prodserv" visibleinnav="true">
     <node id="productos" visibleinnav="true">
         <label xml:lang="es">Productos</label>
     </node>
</node>

i'm having a problem with my tab links while in the search page, both  
if i just clicked in the search button and have the blank search page  
and if i have results from a search made from a regular page.

Being here:
http://u9.local:8888/default/live/about/expansion.html
the link of the "prodserv" node in my tabs is:
http://u9.local:8888/default/live/prodserv.html

I do a search and get here:
http://u9.local:8888/default/live/about/expansion.html? 
query=&find=Buscar&lenya.usecase=search&language=es

At this point, the link in the same tab (prodserv) is:
http://u9.local:8888/default/live/about/prodserv.html
wich is wrong.

I (think i) know this url comes from the @href in tabs.xsl

<xsl:template name="label">
     <li><a href="{@href}"><xsl:apply-templates select="nav:label"/></ 
a></li>
</xsl:template>

but have no idea how to fix it...

Thanks in advance for any help
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Wrong links on tabs at search page

Posted by Carlos Palol <ca...@monkeyproject.net>.
On 07/10/2005, at 21:39, <so...@gmail.com>  
<so...@gmail.com> wrote:

> On 10/6/05, Carlos Palol <ca...@monkeyproject.net> wrote:
>
>> I'm having a problem with my tab links while in the search page, both
>> if I just clicked in the search button and have the blank search page
>> and if I have results from a search made from a regular page.
>>
>> Being here:
>> http://u9.local:8888/default/live/about/expansion.html
>> the link of the "prodserv" node in my tabs is:
>> http://u9.local:8888/default/live/prodserv.html
>>
>> I do a search and get here:
>> http://u9.local:8888/default/live/about/expansion.html?
>> query=&find=Buscar&lenya.usecase=search&language=es
>>
>> At this point, the link in the same tab (prodserv) is:
>> http://u9.local:8888/default/live/about/prodserv.html
>> which is wrong.
>>
>
> This was fixed in my version:
> http://solprovider.com/lenya/search
> 20050917: Fixed bug with navigation. usecase-search.xmap: 3 lines for
> breadcrumb, tabs, menu. Change "/index" to
> "{page-envelope:document-url}".
>
> I also filed it in Bugzilla:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=35173
>
> You can use the Easy Download, download just the corrected file from
> the update history, or manually change the 3 lines in
> usecase-search.xmap.
>


Done!
I also patched search-and-results.xsp from the easy download. I was  
having the charset problem with the search query.

Thanks Mr. Paul!


Carlos Palol
carlospalol@monkeyproject.net

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Wrong links on tabs at search page

Posted by so...@gmail.com.
On 10/6/05, Carlos Palol <ca...@monkeyproject.net> wrote:
> I'm having a problem with my tab links while in the search page, both
> if I just clicked in the search button and have the blank search page
> and if I have results from a search made from a regular page.
>
> Being here:
> http://u9.local:8888/default/live/about/expansion.html
> the link of the "prodserv" node in my tabs is:
> http://u9.local:8888/default/live/prodserv.html
>
> I do a search and get here:
> http://u9.local:8888/default/live/about/expansion.html?
> query=&find=Buscar&lenya.usecase=search&language=es
>
> At this point, the link in the same tab (prodserv) is:
> http://u9.local:8888/default/live/about/prodserv.html
> which is wrong.

This was fixed in my version:
http://solprovider.com/lenya/search
20050917: Fixed bug with navigation. usecase-search.xmap: 3 lines for
breadcrumb, tabs, menu. Change "/index" to
"{page-envelope:document-url}".

I also filed it in Bugzilla:
http://issues.apache.org/bugzilla/show_bug.cgi?id=35173

You can use the Easy Download, download just the corrected file from
the update history, or manually change the 3 lines in
usecase-search.xmap.

Sorry,
solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org