Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

ImageGallery Caption with Multi line!!

Go to End

2 Posts   893 Views


Community Member, 107 Posts

21 August 2011 at 9:32pm

hi, I am using the ImageGallery with Fanceybox . What i am trying to do is make the Image caption has more then one line.

Is there a way to advance the caption section so it can take Links & Multi lines..

Thank you


Forum Moderator, 4102 Posts

23 August 2011 at 1:32am

I might just decorate the ImageGalleryItem class with a new function:

function MultiLineCaption() {
return nl2br($this->owner->Caption);

SilverStripe tips, tutorials, screencasts and more: