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.

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   6014 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