I would like to be able to allow users to choose which area of the site they want to search.
Similar to how http://www.veoh.com do their search.
I have already coded the js/css/html for it, it works in my browser, but now I need to shift it to the CMS.
What I can't figure out is the search templates, as everything in there is tagged for the CMS.
eg. {$inputbox}, {$submittext} etc.
My Questions are:
How do I add an ID or class to these?
Can I use php/js within the search template?
How to expand the search function
-
- Forum Members
- Posts: 19
- Joined: Fri Nov 30, 2007 12:01 pm
Re: How to expand the search function
forevernomad wrote: How do I add an ID or class to these?

If you want a own ID you have 2 option:
- hack Search module code
- if you have a "stable" template (after no other forms), copy from source html code and paste in your Search template (and add your CSS ID/class)
Sure, for PHP my advice is use a UDT and for JS surround your code with {literal} {/literal}forevernomad wrote: Can I use php/js within the search template?
Alby
-
- Forum Members
- Posts: 19
- Joined: Fri Nov 30, 2007 12:01 pm
Re: How to expand the search function
I hadn't realised they were static ids, sorry.I look your html source, input tags have a ID
Would I put my {literal}js{/literal} into the search template itself or in a UDT?
Re: How to expand the search function
In search templateforevernomad wrote: Would I put my {literal}js{/literal} into the search template itself or in a UDT?
Alby
-
- Forum Members
- Posts: 19
- Joined: Fri Nov 30, 2007 12:01 pm
Re: How to expand the search function
Thanks for that. 
