Hello

I would like to use your module with views. In my case I include a view in another, in the views header and then by javascript I make it the background. I would like that I can make it with your module.
Thanks :)

Comments

candelas created an issue. See original summary.

johnny5th’s picture

@candelas can you not use the image formatter within Views?

johnny5th’s picture

Status: Active » Postponed (maintainer needs more info)
candelas’s picture

Hello

I tried with your module, but I was unable to make it work with a view included in the header. Thanks for your interest.

candelas’s picture

Status: Postponed (maintainer needs more info) » Active
glynster’s picture

Works as needed with views expect we get an error:

Notice: A non well formed numeric value encountered in picture_background_formatter_generate_background_css() (line 136

We are using 1x and 2x multipliers.

Line 136 is:

if ($multiplier != 1) {
        $css .= '@media (-webkit-min-device-pixel-ratio: ' . $multiplier . '), (min-resolution: ' . $multiplier * 96 . 'dpi), (min-resolution: ' . $multiplier . 'dppx) {';
      }
garrettw’s picture

@glynster My patch on #3010093 fixes that.

glynster’s picture

Awesome, tnx so much @garrettw!