editing the view of the default image block
Permalink 1 user found helpfuli need to remove parts of the output of the image block. (remove the width="" and height="")
so i thought ok i will just copy the image block from concrete/blocks/image and then edit the view.php to not output the widths and heights that are playing havoc with my responsive design.
i find that the view just has:
and the controller has:
does anyone know how i can find the parts that output anything? as i dont know where to look next.
thanks :)
check out the block i posted here for a already working copy if you're interested. only modification made to it is appending base-url to href for rss feeds that pull images...
http://www.concrete5.org/community/forums/customizing_c5/full-url-i...
guess i would just need to comment out the one line:
//$sizeStr = ' width="' . $thumb->width . '" height="' . $thumb->height . '"';
even if i delete everything out of there and clear cache
img { max-width: 100%; height: auto; }
I wonder if this would work for you
function getContentAndGenerate