Hi,
Anyone know of a way to add a "show all" button to a view that's using a pager? I need the user to be able to view all the results at once instead of clicking on the next button.
Thanks ahead for the help.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | showall.gif | 26.91 KB | kaicyee |
Comments
Comment #1
dawehnerYou could dynamically set $view->set_items_per_page(0); This have to happen before $view->pre_execute()
Comment #2
rusdvl commentedI need it as an option though. I need to display the pager stuff and then if the user wants to view all the options at once instead of clicking the next button, then they should be able to click on "View all".
Comment #3
dawehnerI know what you want, but without custom coding you are lost.fizk_:
Comment #4
dawehnerWith views3 this is possible as a exposed form.
If you cannot use it because you don't have the resources/knowledge to use it then you would need custom coding.
Comment #6
kristen polI have found the option in views 3... click on the "gear" next to the Use Pager item (make sure you have the pager set to be used). You will see "Exposed options" and a checkbox for "Include all items option".
Kristen
Comment #7
christian deloach commentedThe "Include all items option" only works when the "Expose items per page" is checked. The "Expose items per page" creates an HTML form select list that will allow the user to select the number of items to display per page. Checking the "Include all items option" just adds an option to this HTML form select list to view all items but does not add a "View All" link to the pager. The only solutions I've had was to use a custom theme hook for the theme_pager() within my theme's template.php file.
Comment #8
leanne9 commentedI am having the same issue as AHOY, if it is possible to include it in an exposed filter as an option, why shouldn't a simple link just show up when the exposed filter is not checked? Instead, nothing shows up at all.
Comment #9
kaicyee commentedTry the View Extra Pager module which adds these 2 radio buttons on the pager settings of View which will display the Showall button