Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'd like to know how to theme the loading.
I saw views_infinite_scroll_theme.inc but i don't know how to ad my own html code.
Can this module have a tpl?
Through the function theme_views_infinite_scroll_pager i don't know how to theme using template.php
thanks in advance
Comments
Comment #1
carvalhar CreditAttribution: carvalhar commentedi found this at views_plugin_pager_infinite_scroll.inc:
$img_path = $base_url . '/' . drupal_get_path('module', 'views_infinite_scroll') . '/images/ajax-loader.gif';
I could change the image hacking the module, but how can i add a text with
there?
Comment #2
7immy CreditAttribution: 7immy commentedShowing something like..
~~~Loading~~~
20 of 250 posts
..would be brilliant!
Anyone know how I could at least get the current number of posts and total?
Thanks
Comment #3
Josephnewyork CreditAttribution: Josephnewyork commentedI wanted to shange the location of the ajax-loader gif to one that I liked. Here what I did:
/template.php
I wrote this similar to if this mod had a _preprocess_ hook on its settings. Would be nice if it did it, but this works all the same.
Comment #4
Remon CreditAttribution: Remon commentedComment #5
mwesthof CreditAttribution: mwesthof commentedOr with a preprocess implementation.
You can add this to your template.php:
Comment #6
flinth CreditAttribution: flinth commented#3 worked for me, thanks !
Comment #7
fearlsgroove CreditAttribution: fearlsgroove at Alloy Magnetic commentedsee #1040460: Use CSS for the loader