Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Limiting or wrapping pager in TemplateView
Last Post 05/06/2010 1:31 PM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Jason Scott
New Member
New Member
Posts:46


--
05/04/2010 5:38 PM

 I have an odd use case that I'm hoping some TemplateView experts can help me out with.  We have a folder that contains 5,000 files (they're uploaded by an automated batch process each night).  We're using the templateview UI to display the files, and we have it set to show 50 entries per page.  The problem here is that there are now 100 pager buttons that all display on one row.  It forces the entire module to grow in width so that the user has to scroll horizontally to see them all.  

I've tried modifying both the pager template and the page template, but can't seem to come up with a solution that will either WRAP these 100 buttons after a certain width (or number of  buttons) or provide a solution that would limit the pager to X number of buttons before a "..." is shown.  Specifically, I tried to wrap the entire pager in a DIV with a width of "200", but doing so puts each button of the pager on a new line (with each line being 200 pixels wide).  

Any thoughts/ideas would be appreciated!

 

Jason

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
05/06/2010 1:31 PM
Hi Jason,

I'm not sure what to advise. It is not my daily cup-o-tea. Maybe jQuery can provide some nifty solutions although there is no script hook-in in the templated UI mechanism (you'd need to load the scripts in a separate module probably).

Coming back to the wrapping divs: have you tried not having the buttons in a DIV so they flow next to each other?

Peter
You are not authorized to post a reply.