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, biapar, Willr, Ingo, swaiba, simon_w

ImageGallery Caption with Multi line!!


Reply


2 Posts   693 Views

Avatar
DesignerX.com.au

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

Avatar
UncleCheese

Forum Moderator, 4096 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: http://www.leftandmain.com