12 November 2008 at 2:15pm
Hello Everyone. I am developing a site and im stuck with a problem.
I used the simplesearch function found here http://doc.silverstripe.com/doku.php?id=recipes:simplesearch&s=view%20page. Everything worked but i ran into a problem. In the design, im getting a <legend>Search</legend> tag, which is pretty much messing the design. I tried using the search from the tutorial found here http://doc.silverstripe.com/doku.php?id=tutorial:4-site-search but that one also showed the legend tag.
Is there any way to remove it, or at least hide it?
12 November 2008 at 9:20pm
Welcome to Silverstripe Harry...
The Legend appeared all of a sudden in version 2.2.3 for me too. I have no idea why this is.
But the easiest way to change this is to copy the SearchForm.ss from /sapphire/templates to your own templates dir and edit it ....
Silverstripe will then automatically use this template-snippet to create the simplesearch form.
24 November 2008 at 6:05pm
The legend is a required tag for HTML strict validation (or WCAG) if I am not mistaken. I think I added that to the core template as part of a project to make it compatible. You can just hide it like Cyl has mentioned in the CSS file