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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

title attribute in album view


Go to End


2 Posts   1488 Views

Avatar
pbolger

Community Member, 22 Posts

15 July 2009 at 3:31pm

in the ImageGalleryPage_album.ss the title="$Caption" displays html (it shows breaks in the caption). Is there a way to 'wash' the output of a datatype - excuse my not being too across the SS terminology - so that html is stripped?

Avatar
pbolger

Community Member, 22 Posts

16 July 2009 at 12:04am

http://doc.silverstripe.org/doku.php?id=htmltext

$Caption.ATT will give the caption stripped to suit an attribute tag.

It appears that you can't stack these, add .FirstSentence to .ATT to get just the first line.