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.

Widgets

Discuss SilverStripe Widgets.

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

HTML Widget


Reply

4 Posts   473 Views

Avatar
kindlemanwill

6 October 2011 at 6:11pm Community Member, 68 Posts

Hi, I tried out the widgets feature today- first one i tried does not work : (

HTMLWidget shows on the widget area in the cms but the content you type in isn't saved.

Is there a fix for this? Is there a list of approved / working widgets?

w

Avatar
kindlemanwill

6 October 2011 at 6:33pm Community Member, 68 Posts

Correction. It saves it but doesn't show in the editor - the content vanishes. So if you save it again it clears the content.

Avatar
kindlemanwill

6 October 2011 at 7:15pm Community Member, 68 Posts

seems like this has been broken for a while. discussed here:
http://groups.google.com/group/silverstripe-dev/msg/1a3b1292c4f46117

Its a bug in the core. Is there any chance of this being fixed?

Avatar
swaiba

6 October 2011 at 9:43pm (Last edited: 6 October 2011 9:46pm), Forum Moderator, 1796 Posts

I'm agaist hacking the core so the closet I've got to this one is to provide the BBCode... just add a normal textfield (e.g. named "WidgetContent") and then use this in teh template...

$WidgetContent.Parse(BBCodeParser)