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


Go to End
Reply


10 Posts   3068 Views

Avatar
prawnstar

Community Member, 127 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, 164 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