Closed (fixed)
Project:
Custom Search
Version:
7.x-1.x-dev
Component:
Blocks submodule
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2011 at 11:07 UTC
Updated:
8 May 2013 at 20:50 UTC
Hi, previously I have relied on the search-block-form.tpl.php template to override and heavily style the search box. Is there any way this can be done with the Custom Search Module?
I have been trying to locate the place in the code where you are outputting the html but cannot seem to find it.
The only line of code that might give me a clue is:
$block['content'] = drupal_get_form('custom_search_blocks_form_' . $delta, $delta);
however creating a custom-search-block-form.tpl.php yields no results. The attached image should give you an idea of how I need the search bar to look. This design also requires me to add custom jquery code.
Any help would be much appreciated thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| searchBar.jpg | 10.88 KB | dhayles |
Comments
Comment #1
jdanthinne commentedI don't use any additional .tpl file other than the default search-block-form.tpl.php.
I'm overriding the default search form instead of creating a new template.
What can't you do exactly?
Comment #2
dhayles commentedHi, if I create my own search-block-form.tpl.php any changes made to it are not registered.
I want to add some jquery to the taxonomy drop down that is enabled by this module so I can then be styled, please see attached image in the original post.
If I can find a way to add a taxonomy list to the original search module by adding it to search-block-form.tpl.php this would make things easier. All i need is for it to render multiple option items i.e.
<option value="" >taxonomy Item</option>from a taxonomy list directly into search-block-form.tpl.php.Do you know if this is possible?
Comment #3
heddnI'm taking some liberty but a support request from over a year ago is probably
fixed or irrelevant. If you disagree, please reopen and provide more
details.