1970 Posts in 1275 Topics by 607 members
|Go to End|
10 February 2009 at 1:03pm
just wondered if somebody can give me a hint as to how i can control the form xhtml output, for example for hte search form.
I would like to use an <input ... element of hte type="image" do i can customise the search form.
i followed the tutorial here http://doc.silverstripe.com/doku.php?id=tutorial:4-site-search
however i can't seem to find anywhere how to control form output ... Thanks.
11 February 2009 at 9:26am
If you want to use an image type submit button, you'll need to find the line in Page_Controller where it creates a new 'FormAction' and replace it by an ImageFormAction.
You can find the docs for ImageFormAction here: http://api.silverstripe.com/forms/actions/ImageFormAction.html
Hope this was helpful.
11 February 2009 at 12:07pm
That is exaclty what i was looing for ... Thank you ...
|Go to Top|