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

Is there a better way to add the same widgets to all pages?


Reply


11 Posts   2389 Views

Avatar
MikeOne

Community Member, 40 Posts

28 October 2009 at 11:58am

I have never tried it myself but I guess it would be quite easy to do with the removeFieldFromTab function as described here: http://doc.silverstripe.org/doku.php?id=getcmsfields (the naming of the function is a bit off as you can also remove entire tabs with it according to the documentation.

Regards,
Michiel.

Avatar
yurigoul

Community Member, 202 Posts

28 October 2009 at 8:55pm

Thanks for the answer, I will look into it!

Avatar
eternalcheesecake

Community Member, 5 Posts

14 January 2011 at 12:34pm

I found this thread and it inspired me to do the same for my site: make a widget sidebar appear on all pages along with some simple custom designed widgets.

However, I found a few unexpected issues, the biggest being that widgets with checkbox fields and HTML fields do not save their state. It's a known bug, a patch was submitted, and yet the patch didn't work for me. This is with SS 2.4.4.