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.

Widgets /

Discuss SilverStripe Widgets.

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

Widget in the middle of content


Go to End


2 Posts   2780 Views

Avatar
FreshProduce

Community Member, 3 Posts

3 January 2010 at 7:18am

Is there a way to add a widget in the middle of some editable content?

Avatar
Quadra

Community Member, 16 Posts

6 January 2010 at 12:23am

I would start by looking at the following;

http://www.ssbits.com/embedding-youtube-or-vimeo-inside-your-text-content-using-a-custom-textparser/

This would allow you to create a tag that could be used in the content area to call in your widget. Then you would probably also need to create a method on a Page class to manually create your widget as there will be no Widget area as such. See the following for details of how to do that... (the Rendering a $Widget Individually bit)

http://doc.silverstripe.org/doku.php?id=widgets&s=widgets

Never done this myself, but this is where I would start looking.... not the easiest, hopefully someone else will post an obviously easier way that I don't know about!

Cheers
Jason