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
I did try something similar to this as well, but as far as I can tell, there is no option to set the timezone handling in backdrop's views. :( I can set a different date format, but I cannot...
How to Display Date & Time in Original and Local Time Zones
The preview comment links to the website of an online game.
ERR_HTTP2_PROTOCOL_ERROR in Google Chrome and MS Edge
Being on a vacation, I can't check the option to choose a time zone format in a views block. However, here is another idea: Add the field to a layout. Backdrop allows individual fields to...
How to Display Date & Time in Original and Local Time Zones
With the help of the Backdrop office hours crew, I was able to figure out a solution that works for me. I just added an explicit format setting to the long-text field before saving it,...
Is there a way to programmatically enable CKEditor5?
Have you tried adding a symlink pointing at the new location, within the ROOT/themes folder?
Refactor code