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

First n characters


Go to End


3 Posts   737 Views

Avatar
KrassavaBoy

Community Member, 13 Posts

14 September 2014 at 12:42am

How i can get first n characters in template, thank you

Avatar
swaiba

Forum Moderator, 1899 Posts

14 September 2014 at 8:08pm

Assuming this is from a DB text or HTML field...

$MyTextField.Summary(50)

Avatar
KrassavaBoy

Community Member, 13 Posts

14 September 2014 at 9:41pm

But for $Title?