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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

widgetslogin.rar in widgets_login


Go to End


1041 Views

Avatar
gdcode

Community Member, 3 Posts

2 November 2008 at 2:54am

Well, something that took me a little bit of time and I want to share. I download the login widget and I decompress it. that give me the folder widgetlogin that I put on the root of the silverstripe instalation. Everything was ok, the widget works over the Blog module, the only thing was that the input texts where way bigger than the widget itself, actually they where as big as the input text on /admin login page.
I went to the CSS of the widgetlogin and I found that the input.text was well defined... but it wasn't affecting the widget in site. So I found that inside of LoginWidget.php, the line that include the LoginWidget.css does it from the directoty "widgets_login/"...
so if someone goes thru the same issue, the solution is:
to have the Login Widget in the widgets_login folder...
or to modify the loginwidget.php changing the line:

Requirements::css("widgets_login/loginwidget.css");

for

Requirements::css("customfolder/loginwidget.css");
(change customfolder for the folder you actually have with the Login Widget.

and that's it!