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?
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
title attribute in album view
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.