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:

758 Posts in 240 Topics by 248 members

Form Questions

SilverStripe Forums » Form Questions » Silverstripe Search Form

Page: 1
Go to End
Author Topic: Silverstripe Search Form 1191 Views
  • PeteF
    avatar
    Community Member
    8 posts

    Silverstripe Search Form Link to this post

    Hi guys

    I'm using the standard Searchform function within a theme in order to provide a site search facility.
    1: I'm just wondering where the CSS for this form is pulled in from?
    2: Also where is the PHP file that builds this form? Basically I want to restructure the way it builds the form so that it only uses one div instead of putting the input field and the button in two separate divs.

    Cheers
    Pete

  • SuperBlues
    avatar
    Community Member
    15 posts

    Re: Silverstripe Search Form Link to this post

    I have exactly the same requirement. I used firebug to identify the elements and was able to edit the html in firebug to demonstrate the layout I require, but I am unable to find where the html is generated within SS. I did find a topic here where Will suggests a css change but I want to do this within the html.

    Anyone have any suggestions?

    Thank you

  • chrclaus
    avatar
    Community Member
    12 posts

    Re: Silverstripe Search Form Link to this post

    Hello,

    are you looking for the file sapphire/templates/SearchForm.ss? It is possible to create a second one in your themes.

    Best regards,
    chrclaus

    1191 Views
Page: 1
Go to Top

Currently Online: Mr-Badger

Welcome to our latest member: Mr-Badger

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

Comments on this website? Please give feedback.