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:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page Links error in FirstParagraph


Go to End


10 Posts   4568 Views

Avatar
digibrains

Community Member, 130 Posts

14 March 2011 at 9:02am

Edited: 14/03/2011 9:03am

Using figjam's solution above I formated my "Preview.ss" code like this:

$Content.FirstParagraph(html)

Worked perfectly for me.

Thanks, figjam!

Chris.b

Avatar
MarijnKampf

Community Member, 176 Posts

1 June 2011 at 10:00pm

Combining this thread with http://silverstripe.org/general-questions/show/16384#post301296 I ended up changing

/sapphire/core/model/fieldtypes/Text.php (line 257) from
return $data;
to
return DBField::create('HTMLText', $data);

Go to Top