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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cslevy’s picture

I had the same issue. Seems that you need to add the CSS/JS on every element. I created a patch for this.

cslevy’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: expanding_formatter_resource_fix.patch, failed testing.

cslevy’s picture

FileSize
1.58 KB

Re-created patch

cslevy’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 4: expanding_formatter_resource_fix.patch, failed testing.

skadu’s picture

Using this formatter in a views display, the provided patch in #4 works.

Thanks cslevy.

3dnathaniel’s picture

Confirm patch in #4 works for me too. Thank you!

BYUStudies’s picture

The patch in #4 works for me, too.

subhojit777’s picture

Status: Needs work » Needs review
FileSize
1.37 KB
subhojit777’s picture

This is just a reroll of #4

Status: Needs review » Needs work

The last submitted patch, 10: css_and_js_not_being-2502947-10.patch, failed testing.

subhojit777’s picture

There's no reason for failure of the test :(

teknojon’s picture

I 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?

teknojon’s picture

Issue tags: +It Works!