madeyourday / contao-rocksolid-custom-elements

RockSolid Custom Elements Contao Extension
http://rocksolidthemes.com/de/contao/plugins/custom-content-elements
MIT License
48 stars 12 forks source link

Allow lightboxID for getImageObject #38

Closed ColdFireIce closed 9 years ago

ColdFireIce commented 9 years ago

This change will allow a user to get an Image Object with a specific lightbox ID set. This function is allready included in the addImageToTemplate() function. The ID just gets passed through.

ausi commented 9 years ago

You can now use lightbox and fullsize this way:

$this->getImageObject($id, $size, null, 'lightbox[foo]', array('fullsize' => true))