Customizing the search block doesnt work

Permalink 1 user found helpful
Hi there,

I am trying to customize the search block right now, but every attempt is followed by an inclusion error.

All those methods dont work (only one at a time):

/blocks/search/view.php
/blocks/search/templates/view.php
/blocks/search/templates/customname.php

The inclusion error doesnt come from the new template file, but from the original block. The new template does not contain any inclusion.

The error:

Warning: include(/var/www/myvhost/htdocs/concrete5installation/blocks/search/form_setup_html.php) [function.include]: failed to open stream: No such file or directory in /srv/www/myvhost/htdocs/concrete5installation/concrete/blocks/search/edit.php on line 6

Warning: include() [function.include]: Failed opening '/var/www/myvhost/htdocs/concrete5installation/blocks/search/form_setup_html.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/var/www/myvhost/htdocs/concrete5installation/libraries/3rdparty:/srv/www/myvhost/htdocs/concrete5installation/concrete/config/../libraries/3rdparty') in /srv/www/myvhost/htdocs/concrete5installation/concrete/blocks/search/edit.php on line 6

edit: The problem seems to be the following line:

include($this->getBlockPath() .'/form_setup_html.php');

 
2BitMarv replied on at Permalink Reply
2BitMarv
Seems you had copied only the view.php to /blocks/search while edit.php and others remain in /concrete/blocks/search. Better get the full block element folder copied to the blocks folder in root so you can edit whatever you want without "bugging" the originals