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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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