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

RandomContentWidget not saving state


Go to End


4 Posts   2268 Views

Avatar
RichardMortimer

Community Member, 15 Posts

7 October 2009 at 2:29pm

Hi,

We've recently come up against an issue where we add a RandomContentWidget to a page, tell it the URL, and save the page, to go back again and the widget is not saved to the page.

The odd thing is, this was working a while ago, and we added the widget to a number of pages, which all seems to be working, it's only when we try to add a new RCW in.

Checking the database, I looked up the ID of some of the pages we're having problems with, and in the RandomContentWidget table, the ParentPage field is set, and is the correct page.

Anyone have any ideas about what I might be doing wrong?

Thanks

Richard

Avatar
RichardMortimer

Community Member, 15 Posts

9 October 2009 at 6:01pm

Edited: 09/10/2009 6:02pm

As an update, I added the IE6 detection widget to the site, and installed on a couple of pages as a test, and this is not saving either; with either a page that has previously had a widget installed, or when installing it on a widget-less page.

So the error seems to be related to widgets, rather than specifically the Random Content Widget.

Anyone have any clues on why Widgets might not be saving their state?

Thanks

Richard

Avatar
RichardMortimer

Community Member, 15 Posts

29 October 2009 at 1:21pm

*bump*

Anyone??

Avatar
dhensby

Community Member, 253 Posts

29 October 2009 at 2:14pm

Hmm, i think i had this problem too.

I would drag a widget over to add it to a page, save & publish and on reloading the admin area it was gone (not saved). It was definitely a problem with my code that i fixed, i just cant remember what. Keep debugging, start again or post complete code.