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

title attribute in album view


Go to End


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