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.
I found that .js and .css files are not being added to each view element.
The code seams allright on expanding_formatter.module line 239.
I only could get it working when force add js and css with this:
drupal_add_css($module_path . '/css/expanding_formatter.css');
drupal_add_js($module_path . '/js/expanding_formatter.js');
after line 243 on the same file.
I tried to understand why it was not loading, but didn't came to a conclusion.
great module
Comment | File | Size | Author |
---|---|---|---|
#10 | css_and_js_not_being-2502947-10.patch | 1.37 KB | subhojit777 |
| |||
#4 | expanding_formatter_resource_fix.patch | 1.58 KB | cslevy |
Comments
Comment #1
cslevy CreditAttribution: cslevy at AG Prime commentedI had the same issue. Seems that you need to add the CSS/JS on every element. I created a patch for this.
Comment #2
cslevy CreditAttribution: cslevy at AG Prime commentedComment #4
cslevy CreditAttribution: cslevy at AG Prime commentedRe-created patch
Comment #5
cslevy CreditAttribution: cslevy at AG Prime commentedComment #7
skaduUsing this formatter in a views display, the provided patch in #4 works.
Thanks cslevy.
Comment #8
3dnathaniel CreditAttribution: 3dnathaniel commentedConfirm patch in #4 works for me too. Thank you!
Comment #9
BYUStudies CreditAttribution: BYUStudies commentedThe patch in #4 works for me, too.
Comment #10
subhojit777Comment #11
subhojit777This is just a reroll of #4
Comment #13
subhojit777There's no reason for failure of the test :(
Comment #14
teknojon CreditAttribution: teknojon as a volunteer and commentedI manually applied the patch and it now works in views. It gave 'Hunk' fails when tried to apply with terminal window. I can provide the new expanding_formatter.module if anyone wants it?
Comment #15
teknojon CreditAttribution: teknojon as a volunteer and commented