I'm building a site and added the search-functionality from the tutorial. It seems to me that a lot of unnecessary html is added that I would like to remove but don't know how. For example, new TextField("Search", "", $searchText);
generates an extra div: <div id="Search" class="field text nolabel">
and an extra span: <span class="middleColumn">
Well just to update anyone else with this problem searching the board. The only way I could get it to work in the absence of a reply to my post, was to edit the formfield.php file, line 265 to get rid of the div and span tags, (perhaps they shouldn't really be mixed in there as they are for presentation rather than functional elements within form controls, no?).
The comments in the formfield.php did point to using another file DefaultFieldHolder.ss that should be used to implement a custom look, however this isn't elaborated on as to how this is achieved unfortunately. I did try by placing it in my themes folder and doing the flush=1 trick but it didn't appear to get picked up by SS when placed in there so I'm none the wiser as to it's proper usage or context.... :o(
Can anyone from the team help to expand on how this file (DefaultFieldHolder.ss) works to create a custom look to forms in the app please?
I know this thread is kind of old but from memory you can extend all the existing classes (ie form fields) and set the template that it renders with. You should do all of this in you own code and templates sections of your site. No need at all to modify the core. Also you can extend to Search Engine overwriting the methods you need to change to make the default search better.
Dio to allow searching in places that are in the sitetree you can add Fulltext to them and then change the Search Engine.