7912 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » title attribute in album view
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 656 Views |
-
title attribute in album view

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

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.
| 656 Views | ||
|
Page:
1
|
Go to Top |

