Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

370 Posts in 100 Topics by 134 members

Widgets

SilverStripe Forums » Widgets » Contact Form in a Widget

Discuss SilverStripe Widgets.

Page: 1
Go to End
Author Topic: Contact Form in a Widget 1840 Views
  • KeithLeslie
    avatar
    Community Member
    6 posts

    Contact Form in a Widget Link to this post

    How would I go about putting a contact us form inside a widget? Is it possible to execute php on a form post from inside a widget? Or better yet, is it possible to use Silverstripe forms inside a widget?

  • Nivanka
    avatar
    Community Member
    337 posts

    Re: Contact Form in a Widget Link to this post

    You can do this I think

    see how the login widget is created, and try to hack around it. http://www.silverstripe.org/Log-in/

  • Jedateach
    avatar
    54 posts

    Re: Contact Form in a Widget Link to this post

    Heh, I made the login widget, which is just a hack itself.

    It dosen't contain a Silverstripe form, but rather just submits to the Security controller I think.

    This page tells you how to add a form to a widget:
    http://doc.silverstripe.com/doku.php?id=widgets:forms&s=widget%20form

    Unfortunately it does not work in SS 2.3 yet...

  • Jedateach
    avatar
    54 posts

    Re: Contact Form in a Widget Link to this post

    Hey guys, I've now updated the widget forms docs with code that actually works.

    http://doc.silverstripe.org/doku.php?id=widgets:forms

  • Thomashv
    avatar
    Community Member
    4 posts

    Re: Contact Form in a Widget Link to this post

    I've tried to build a contact form widget based on this recipe. But I have some problems with the posting. I get the following error message:
    Website Error
    There has been an error

    The website server has not been able to respond to your request.

    I have created a topic wich includes my code here...

    I would be pleased if some of you experts had some tips for me!!

  • Heike-san
    avatar
    Community Member
    40 posts

    Re: Contact Form in a Widget Link to this post

    Thomas have you solved your problem since hten ? i have the same kind of problem for my widget and I would enjoy any hints on how all of you guys managed to solve this issue. 'Been on this issue for over three weeks now, the clients are not gonna be very happy!!

  • Thomashv
    avatar
    Community Member
    4 posts

    Re: Contact Form in a Widget Link to this post

    No sorry, I gave up on that. But I am reading the SilverStripe book now so hope that will increase my understanding to find out of this among other challenges I've met developing in SS. Will post it in this thread then.

    1840 Views
Page: 1
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: Eco

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

Comments on this website? Please give feedback.