Search form override behaves oddly

Permalink
I needed to override the view.php for the search block to put some id's in the field params, no problemt there but...

Later when I came to edit the block the edit.php script was looking for the form_setup_html.php script from the /blocks/search override directory, not the /concrete/blocks/search directory causing an error.

Seems fixed by copying the contents of the c5 search directory into the /blocks override directory but should this be happening ?

G

surefyre
 
c5studio replied on at Permalink Reply
c5studio
It would be best to use a custom template instead of overriding the default view. You can just take the view.php file that you changed and then put it in /concrete/blocks/search/templates/ and then rename the 'view.php' file to whatever you want to call your custom template.

To use it, click on the search block when you are in edit mode, and then click on custom template, and yours should show up in the dropdown.
surefyre replied on at Permalink Reply
surefyre
No problem there.

Now I've tried to make a simple mod to the HTML block so it only displays for MSIE user agents. I've done this by creating html/templates under /blocks and have discovered that if you simply do mkdir [siteroot]/blocks/html then the HTML block will say it can no longer load the form_setup_html.php script with nothing more than an empty html dir under /blocks.

Sure this isn't expected behaviour?

Presumably copying or linking the form_setup_html file into the /blocks/html dir will fix...