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.

Template Questions /

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

Split Text Fields


Go to End


2 Posts   1352 Views

Avatar
Strernd

Community Member, 1 Post

5 February 2013 at 9:45pm

Hello SS-Community,

How can i split the Content of a HTMLText Field into two or more parts? I want to have 2 or 3 paragraphs then an Image Gallery and then some more paragraphs.

Any Ideas?

Thank you & Greetings

Bernd

Avatar
Willr

Forum Moderator, 5523 Posts

9 February 2013 at 3:27pm

You can you a Shortcode to 'inject' content within content. Or you could spilt the HTMLText field yourself.

http://www.ssbits.com/tutorials/2010/2-4-using-short-codes-to-embed-a-youtube-video/