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

title attribute in album view


Reply


2 Posts   1000 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.