Developer forum

Forum » CMS - Standard features » DataLists page size

DataLists page size

Adrian Ursu
Reply

Hi guys,

I am using DataList module for some publishing of data in front-end.

I was wondering if the DataList accepts changing of the PageSize via URL QueryString. I already tried PageSize=24 but I got not change.

Also tried PagingPageSize = 24 and DWPagingPageSize = 24. No luck.

Thanks,

Adrian


Replies

 
Merethe Vrå Andersen
Reply

Hi,

I've set up data lists with default templates and they include paging that use a querystring like this:

http://mysite.dk/Default.aspx?ID=610&Purge=True&PID=1832&DWPagingPageNum=3

I hope this helps you.

Kind regards,
Merethe

 
Adrian Ursu
Reply

Hi Merethe,

I was refering to PageSize not PageNumber.

I have found the pagining in the default templates and it works preety fine.

I don't know how to change the number of records on a page from the default value set on the module.

Similar with how you do it on the ProductList

Thanks,

Adrian

 
Adrian Ursu
Reply

Anybody?

 
Oleg Rodionov
Reply

Hi Adrian,

You can use PageSize parameter to handle product amount in Product catalog module's frontend (Product groups/Index) like this  - http://mysite.dynamicweb.dk/Default.aspx?ID=123&Purge=True&PageSize=n

The feature is not currently available for DataList module's frontend.

BR, Oleg QA

 
Adrian Ursu
Reply

Hi Oleg,

I know about the module settings. I wnated to know if I can use the parameter in URL for changing the current PageSize. It looks that I cannot.

Any plan on adding this? Can you put a Feature Request for me?

Thanks,

Adrian

 
Nicolai Høeg Pedersen
Reply

Added as TFS#25090 for next hotfix of 8.8.1

 
Adrian Ursu
Reply

I have a new question related to DataLists.

I need to publish a list that is supposed to be rendered based on 2 parameters. One of them is a Session Variable and the other is a QueryString Variable.

My problem is the definition of the DataList. If I include both parameters with the "AND" condition and one of them is empty (the QueryString Variable) the result will be empty.

I was wondering if I can get something similar with how the New Index does it. If the parameter is not empty, it applies it otherwise the parameter is ignored.

I would have used the new index instead, but I need the sorting functionality very bad.

Thanks,
Adrian

 
Nuno Aguiar
Reply

Hi Adrian,

 

You can build that on your SQL statement and using a CASE WHEN OR statement and check against. We've done it a few times and works ok.

 

Best Regards,

Nuno Aguiar

 
Adrian Ursu
Reply

Thank you Nuno. I have not thought about that.

I will give it a try.

Thank you,
Adrian

 
Adrian Ursu
Reply

I gave it a try but apparently it does not like combining CASE with Request parameters.

It works just fine with constants but not with Reques (have not tries it with Session.

It might be just my limited knowledge.

I have ended up using a Like '%@Request('q')%'statement instead of = @Request("q")

Thank you very much,

Adrian

 

You must be logged in to post in the forum