By desm0n on
OK i'm on the last legs of conveting a CSS theme to drupal and its nearly there.
I have a search box that is displayed using the following in page.tpl.php :-
Search Example: Port Talbot Chat
How do i get this to interact with the drupal search ?
My search bar can be seen at http://82.16.165.102
Any help appreciated.
Comments
Searching
Servus.
I hope I understood your question right...
To enable search you must have a cron job set up on your server, examples of how to set it up are plenty in the handbooks sections and in the installation "manual".
If it is about theming the search field, I simply created my own classes for this purpose. It's an input field, and you may tag it to your liking.
In the CSS (style.css) you'll use
The search form is defined in misc/drupal.css using two statements
Hope this was the right answer for you,
Norbert
-- form follows function
Norbert
-- form follows function
Thanks taking the time to
Thanks taking the time to reply.
I understand your confusion now as my div code never posted (oops) :).
Anyway i have the following defined in a theme
This is currently hardcoded into the page.tpl.php file. But i'm at a bit of a loss how to turn this into a functioning search box within drupal (keeping that style).
Any help appreciated.
Would this help?
http://api.drupal.org/apis/HEAD/search
Theming can be done via CSS.
(A totally irrelevant sidenote: your button seems to be 1 pixel higher than the textinput of your search)
Hi caesar and thanks for
Hi caesar and thanks for joining in to help.
I really don't understand all that api stuff in all honesty and how to implement any of that to good use. I'm sure there is a wealth of knowledge there (it blows my mind away) but it just doesn't ring any bells for me :(
OK i've achieved this by
OK i've achieved this by hard coding the form into page.tpl.php doing the following :-
Now one question.
This uses the unfriendly url for the search but on my test system friendly urls are disabled. Is there a way to define the url depending on whether urls are friendly or not ? On my live system the search would be search/node/ and on a normal system ?q=search/node/
If you are using the
If you are using the standard PHP Template engine you may want to read through the Theme Developer's guide. In there I saw this:
This is more up to date :
This is more up to date : http://drupal.org/node/45295