-----Ursprungligt meddelande-----
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Magnus Eklund
Skickat: den 24 september 2008 10:11
Till: Sesat Kernel usage and development discussions.
Ämne: Re: offset link missing some parameters

 

On 24/09/2008, Anna Larsson <[EMAIL PROTECTED]> wrote:

> 

> 

> 

> 

> 

> 

> 

> 

> -----Ursprungligt meddelande-----

>  Från: [EMAIL PROTECTED]

> [mailto:[EMAIL PROTECTED] För Magnus

> Eklund

>  Skickat: den 23 september 2008 18:46

>  Till: Sesat Kernel usage and development discussions.

>  Ämne: Re: offset link missing some parameters

> 

> 

> 

> 

> 2008/9/23 Anna Larsson <[EMAIL PROTECTED]>:

> 

> >> On this page: http://sesam.se/nyheter/person/Anders+Borg

> when clicking on

> 

> >> the "nästa" link at the bottom, the link is missing the type=person in

> the

> 

> >> url.

> 

> >>

> 

> >>

> 

> >>

> 

> >>

> $datamodel.navigation.getNavigation('offset').results.get(

> 0 ).url   is the

> 

> >> code that gets the url for the offset link.

> 

> >>

> 

> >>

> 

> >>

> 

> >> in views.xml (don't have any reset function in offset)

> 

> >>

> 

> >>                 <navigation>

> 

> >>

> 

> >>                     <nav id="offset" command-name="newsSearch">

> 

> >>

> 

> >>                         <options>

> 

> >>

> 

> >>                             <config>

> 

> >>

> 

> >>                                 <add

> display-name="nästa"

> 

> >> value-ref="nextOffset"/>

> 

> >>

> 

> >>                             </config>

> 

> >>

> 

> >>                         </options>

> 

> >>

> 

> >>                     </nav>

> 

> >>

> 

> >>                 </navigation>

> 

> >>

> 

> >>

> 

> 

> 

> >I think what you really want might not be the extra "type" parameter

> 

> >but rather the URL structure to be kept with just an extra "offset"

> 

> >parameter. In this way the value of the type parameter is retained as

> 

> >a path segment:

> 

> >

> 

> >http://sesam.se/nyheter/person/Anders+Borg?offset=20

> 

> >

> 

> >This can be achieved with the NewsCaseUrlGenerator. What does your

> 

> ><navigation tab="nc"....> tag look like? Does it define the

> 

> >url-generator and prefix attributes?

> 

> 

> 

> <navigation tab="nc" out="true"

> command-name="newsSearchCasePersonNavigator">

> 

>     <fast id="people" field="newsCase">

> 

>         <static-parameter name="type" value="person"/>

> 

>     </fast>

> 

>     <fast id="cases" field="newsCase">

> 

>          <static-parameter name="type" value="sak"/>

> 

>     </fast>

> 

> </navigation>

> 

> 

> 

> Is something wrong or missing?

> 

> 

 

Try adding the attributes

url-generator="no.sesat.search.view.navigation.NewsCaseUrlGenerator"

prefix="/nyheter/" to the navigation element and see if that helps

you.

 

 

First test local works great with the attributes added! =)

Thanks! =)

 

 

 

- Magnus

_______________________________________________

Kernel-development mailing list

[email protected]

http://sesat.no/mailman/listinfo/kernel-development

_______________________________________________
Kernel-development mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-development

Reply via email to