Have set the views display to Bootstrap Media Object and assigned the fields for image, title and body. Instead of the image I get a small empty square (the image border.) Has anyone had this experience? I cannot get the image to show.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

smerth created an issue. See original summary.

joebest’s picture

Having same issue

CharlesWil’s picture

This has more of a bug with the bootstrap theme,

bisonbleu’s picture

Just ran into this issue. Found a few solutions:

  • When using CDN, set version to 3.3.1 or less.
  • Or, at line 10 of views-bootstrap-media-plugin-style.tpl.php, add the "pull-left" class after "media-left".
  • Or, revert to views_bootstrap-7.x-3.1.
bisonbleu’s picture

Status: Active » Needs review
FileSize
602 bytes

The classes .pull-left and .pull-right also exist and were previously used as part of the media component, but are deprecated for that use as of v3.3.0. They are approximately equivalent to .media-left and .media-right, except that .media-right should be placed after the .media-body in the html.

Reference: http://getbootstrap.com/components/#media

Understanding that views_bootstrap is in a transition, I think that the second option mentioned in #4 makes the most sense in order for views_bootstrap to be backward compatible.

Patch is attached.

nor sairi’s picture

#4 thank you bisonbleu, its work to me

Or, at line 10 of views-bootstrap-media-plugin-style.tpl.php, add the "pull-left" class after "media-left".
rschwab’s picture

Version: 7.x-3.x-dev » 7.x-3.2
Status: Needs review » Reviewed & tested by the community

This bug has been released with 7.32.

Patch in #4 fixed the issue for me as well.

  • aburrows committed dc3ab49 on 7.x-3.x authored by bisonbleu
    Issue #2601748 by bisonbleu: Media Object Component - Image not showing
    

aburrows credited aburrows.

aburrows’s picture

Committed with thanks

aburrows’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

krisp1’s picture

Thanks for the fix

freeform.steph’s picture

Thank you for this patch, it works great, we applied this to version 7.x-3.2.

da20web’s picture

#4 @bisonbleu I love you in a non-sexual way! =D

bisonbleu’s picture

;-) All good. The world needs more love. There should be an issue for that, ha ha. Cheers!

nor sairi’s picture

drupal 8 please

Chris Matthews’s picture