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.

General Questions

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

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

Page Links error in FirstParagraph


Reply

10 Posts   2941 Views

Avatar
prawnstar

14 March 2011 at 9:02am (Last edited: 14 March 2011 9:03am), Community Member, 116 Posts

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

1 June 2011 at 10:00pm Community Member, 164 Posts

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);