Number of assets per page


(Pomster09) #1

Is there a keyword for number of assets per page that the user can control?

 

My listing generates a table with each asset in it's own row. I'd like the user to be able to select how many rows they view per page (i.e. 10, 20, 50). Is there a keyword for this, so that when the user does change the number of items per page, then the page count at the bottom should automatically change too.

 

Simples!


(Nic Hubbard) #2

You are looking for a way to make the asset listing return the specified number of results?

 

Look at the "Assets Per Page" setting. Here you can enter a keyword, such as %globals_get_num%. Then on your Asset Listing URL just add ?num=200 or how ever many you want to show.


(Pomster09) #3

Great, not sure I understand fully, but I'll try that.

 

I'm thinking I'll have an input select with three per-defined choices; not sure other than using the select as a jump menu, of how I get the figure in the url? I don't really want to reload the page.


(Nic Hubbard) #4

Great, not sure I understand fully, but I'll try that.

 

I'm thinking I'll have an input select with three per-defined choices; not sure other than using the select as a jump menu, of how I get the figure in the url? I don't really want to reload the page.

 

If you don't want to reload the page, then you are going to have to use a javascript solution.


(Joel Porgand) #5

 

If you don't want to reload the page, then you are going to have to use a javascript solution.

 

I'd suggest datatables.