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

Where to extract Widget to?


Go to End


4 Posts   3281 Views

Avatar
vtpcwizard2

Community Member, 4 Posts

1 March 2009 at 6:50am

Please tell me where to extract a Widget to so it is then available in CMS. I'm new to Silverstripe and have yet to find a concise answer on where to place a Widget in my SS directory structure. I'm using latest v of SS. Are they placed, like modules, in the root of my SS installation or within a folder (widgets) in the root or someplace else? Thanks!

Avatar
funfried

Community Member, 22 Posts

1 March 2009 at 8:06am

Yes, you have to place the widget folder (e.g. widget_WidgetName) into the root directory of ss, then call the following url:

http://www.yoursite.com/db/build?flush=1

(Normally you shouldn't need to add "?flush=1", but it can't be bad).

Regards,

Fabi

Avatar
vtpcwizard2

Community Member, 4 Posts

1 March 2009 at 8:16am

For clarity: With the latest version of SS (2.3.0) - Shouldn't the url call be http://www.yoursite.com/dev/build?flush=all ? instead of http://www.yoursite.com/db/build?flush=1 ? Thanks!

Avatar
funfried

Community Member, 22 Posts

1 March 2009 at 10:28pm

It seems you're right, you can read it here:

http://silverstripe.org/silverstripe-2-3-0-released-1000s-of-improvements/

I have also ss 2.3.0 and for me both is working, maybe they keep the old style for the next one or two version, but I think you should better use http://www.yoursite.com/dev/build?flush=all

Regards
Fabi