
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] [more-list] problem (need explanation)
At 11:13 AM 8/30/01, you wrote:
> Hi, i'm new to Interchance, and I'm messing around with the tutorial,
>trying to show list of products, right from my sql database, but I want to
>paginate the result.
> I'm using the following:
> >
> > [query sql="select b_id, b_descricao from brand order by b_descricao"
> > type=list
> > more=1
> > ml=2
> > prefix=marcas
> >list_prefix=l_marcas]
> >
> > [l_marcas]
> > <tr>
> > <td>[marcas-code]</td>
> > <td><a href="[marcas-code].html">[marcas-param b_descricao]</a></td>
> > </tr>
> > [/l_marcas]
> >
> > <tr>
> > <td colspan="2">
> > [more_list]
> > [more]
> > [/more_list]
> > </td>
> > </tr>
> > [/query]
> >
>
> In the first page returned, if I use the links I go to the flypage.html,
>where a more detailed description of the product is. But if I start using the
>paginate links that the [more-list] generates, the products links in those
>pages try to do a search, instead of calling the flypage. What am I doing
>wrong??? Is there another way of paginate a result??
> Here are the links I obtain:
> the link I want ->
> http://testes4.loja.local/cgi-bin/tutorial/1.html
> the link I don't want ->
> http://testes4.loja.local/cgi-bin/tutorial/scan/2.html
>
>
> I would appreciate any help, thanks,
>
>
>--
>Luís Filipe Silvestre Marques
>L8 Tecnologias de Informação, Lda
>Rua Alves Redol Nº11 - 1 Andar 1000-030 LISBOA
>Tel: +351 217800009 Fax: +351 217800012
>www.l8ti.com
>_______________________________________________
Luis,
I believe you need to change the following line from:
<td><a href="[marcas-code].html">[marcas-param b_descricao]</a></td>
to:
<td>[page href="[marcas-code]"][marcas-param b_descricao]</a></td>
Because when you use paging, your url changes and your relative link will
then fail.
Kyle Cook
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users