For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Hi all,
I want to change the looks of the search module. I have included the module and it is coming with default css.
I want to cgange the button with an image, remove the 'search' word and make the textbox smaller.
How I can do it?
Is there anyone to help me?
It's urgent.
You can change the Look & Feel of the search-template (the input form) as well as the design of the output in Extensions > Search. All you need to do is put the code of your template into the respective fields and style it the way you like with HTML & CSS.
mark wrote:
You may have to go to the search module and change the action.default.php line 34, I used it to make the button an image...
I applied your suggestion, mark, on CMSMS 1.0.6, but it didn't work. I still have the "submit" button instead of my image. This is the line I have edited:
to style the search module, just do two things
a) wrap the search tag in a div.
like: {search}
now you can use css to style most everything.
b) to use an image instead of a button for submit you need to just modify the template to remove the {submit} stuff and replace it with the appropriate tag.
all that is left is the javascript.
All you need to do is submit the form name, a simple view source wll tell you the form name, and if your form won't be moving around, then this is great, copy the form name out, and use "javascript:document.whateverform.submit()".
If there's a chance that your form might move around on your page, I have a javascript function (that can be embedded into your global metadata, or your page template). to detect the current form.
BTW, this solution doesn't only apply to search, but to every module.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
-------------------- If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
I think CMS is looking from the root of CMS itself, so the original location was correct, just the calling might have been wrong. Do you see the image when you put "domain + image-link" in the address bar, otherwise the rights might have been wrong. If the rights aren't correct the image is put over the search-box.
RonnyK wrote:
I think CMS is looking from the root of CMS itself, so the original location was correct, just the calling might have been wrong. Do you see the image when you put "domain + image-link" in the address bar, otherwise the rights might have been wrong. If the rights aren't correct the image is put over the search-box.
Ronny
Yes, I see the image from the web if I direct the browser on it.
But it is not shown anywhere on the search module, while the button is always there. How could it be? I have modified that line.
did you clear the cache? this may be causing the problem.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
-------------------- If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.