Jump to:

794 Posts in 408 Topics by 304 members

Widgets

SilverStripe Forums » Widgets » Widget will not install

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 2727 Views
  • john_fuqua
    Avatar
    Community Member
    8 Posts

    Widget will not install Link to this post

    I have copied the widget folder to the root installation directory of silverstripe. In this case I copied the LoginWidget. When I go and run the dev/build script, it does nothing. I verify in the database that nothing has been created. I go and look in the CMS and it does not show my new widget in the widgets tab. Please advise.

    Cheers,
    John

  • mandrew
    Avatar
    Core Development Team
    32 Posts

    Re: Widget will not install Link to this post

    Hi John,

    Did you created an '_config.php' file in your widgets folder? This file can be empty except for the <?php ?> tags but what it is used for is to tell SilverStripe that this folder has files that need to be used in the CMS.

    This should execute the code and add the widgets to the widget tab.

    However if you have the blog module installed, you need to follow the instructions here (http://doc.silverstripe.org/doku.php?id=widgets) if you want to use this widget on all your website pages.

    Mike.

  • john_fuqua
    Avatar
    Community Member
    8 Posts

    Re: Widget will not install Link to this post

    Yes, these have the _config.php files in their directories. I downloaded the widgets from this website. I also went through the guide to enable them on all of my pages. I see the Widget tab now, but no widgets that I copied into the root directory. I ran the build also using the flush=all parameter.

    John

  • john_fuqua
    Avatar
    Community Member
    8 Posts

    Re: Widget will not install Link to this post

    Could it be a file or folder permissions since these were downloaded? I do not understand why SilverStripe is not processing these. Can I do some sort of force processing? What could cause SilverStripe not to process/install a widget folder?

    John

  • meyer0
    Avatar
    Community Member
    2 Posts

    Re: Widget will not install Link to this post

    I downloaded the LoginWidget, installed it in the Silverstripe root folder, I ran both dev/build and db/build (which method is correct now?) and logged into the CMS but I don't see a Widget tab anywhere. I've done the flush thing, I've cleared my cache and restarted the browser. I have a _config file. Am I missing a step?

  • haantje72
    Avatar
    Community Member
    69 Posts

    Re: Widget will not install Link to this post

    i have here the same problem that widgets would not install... It looks like they are well installed (i think they are).
    With drag and drop the widget i get an javascripterror (with all of them) whatever i do.

    error in ie8:
    Failure webpage

    Uderagent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
    Timestamp: Sun, 6 Dec 2009 17:31:11 UTC

    Bericht: Deze eigenschap of methode wordt niet ondersteund door dit object (this is not accepted by this object)
    Rulel: 87
    Sign: 5
    Code: 0
    URI: http://...

    what can i do about this.
    Ive downloaded from the dayly build the newer WidgetAreaEditor.js, replaced the old one but got on all the pages errors... i think too much changed in the dayly build.
    btw i'm using silverstripe 2.3.4.rc1

    2727 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.