I have a page callback that loads up view with views_get_view_results($view_name)
that loads the results just fine and I have what I need for display, but I can not figure out how to load the pager data so I can put pagination onto the page and detect when there are previous and next pages.
I'd like to have access to items_per_page, current_page, total_items
which are all defined in the views_plugin_pager
class.
If I load the view with views_get_view($view_name)
it loads the view object un-executed and calling $viewObj->current_page()
, for example just returns NULL
.
Any help would be appreciated.
Recent comments
It is possible to remove that line manually from the SQL file and it should then import to MySQL fine.
Problem with utf8mb4 Format when importing database
I think people have used bee in MAMP. I've posted in our chat channel to see if anyone can jump in here and help: #Backdrop > Bee @ 💬
Problem with utf8mb4 Format when importing database
Hi Thanks for the quick answer. Looks interesting and hope I can verify that this solves the issue. Not yet sure how I can use the bee tool in my MAMP environment. Cheers, Rolf
Problem with utf8mb4 Format when importing database
I believe the issue relates to a compatibility issue with MariaDB exports: https://mariadb.org/mariadb-dump-file-compatibility-change/ I don't know if Backup and Migrate addresses...
Problem with utf8mb4 Format when importing database
This may be overkill, but the module print contains an option to email the page as well, I believe. I'm not sure if its working in its Backdrop's version. https://github.com/backdrop-...
Forward/email this page ?