[Solved] Search Module, which elements to style with CSS?
Posted: Sat Mar 01, 2008 1:34 am
Please help me find the IDs and Classes and whatever else I need.
(learning CMSMS by adapting the CSS Pixelgreen template)
The platform is PHP 5, no safe mode, (don't know the version) and FreeBSD and CMSMS 1.2.3.
I know some XHTML and CSS, no programming (Started with HotDog a 'few' years back)
In the template file:
{search}
I removed the >> {$label}: {$ > value={$submittext}" > value="Sök" (Swedish)
and changed the default text input phrase into Swedish as well.
In my pixelgreen_search.css I have disabled all the original form elements to be able to follow what I do.
Below places the default textarea and button inside the sidbar and sidebox. Not quite beautifully
Adding this changes the default text field and button. Adding width etc configures the button only.
Don't notice any change using this:
The SEARCH SOURCE looks like this:
This is my link:
http://nagot.se.vonanka.kontrollpanelen ... pixelgreen
Mark's comments have been helpful, but obviously not all the way
http://forum.cmsmadesimple.org/index.ph ... 169.0.html
Searching ongives zilion pages.
I am VERY grateful for help
IBN
(learning CMSMS by adapting the CSS Pixelgreen template)
The platform is PHP 5, no safe mode, (don't know the version) and FreeBSD and CMSMS 1.2.3.
I know some XHTML and CSS, no programming (Started with HotDog a 'few' years back)
In the template file:
{search}
I removed the >> {$label}: {$ > value={$submittext}" > value="Sök" (Swedish)
and changed the default text input phrase into Swedish as well.
In my pixelgreen_search.css I have disabled all the original form elements to be able to follow what I do.
Below places the default textarea and button inside the sidbar and sidebox. Not quite beautifully
Code: Select all
#cntnt01moduleform_1 {
margin:10px 15px 10px 15px;
padding: 0;
border: 1px solid #f2f2f2;
background-color: #FAFAFA;
Adding this changes the default text field and button. Adding width etc configures the button only.
Code: Select all
input {
padding: 2px;
border:1px solid #eee;
font: normal 1em "Trebuchet MS", Tahoma, sans-serif;
color:#777;
Code: Select all
#cntnt01searchinput {
width: 145px;
}
Code: Select all
Nor with shis {$inputbox}:
#inputbox {...whatever...}
Code: Select all
<h1>Search Box</h1>
<div id="search"><form id="cntnt01moduleform_1" method="get" action="index.php">
<div class="hidden"> <input type="hidden" name="mact" value="Search,cntnt01,dosearch,0" />
<input type="hidden" name="cntnt01returnid" value="60" /></div>
<input type="text" name="cntnt01searchinput" id="cntnt01searchinput" value="skriv in här...." size="20" maxlength="50" onfocus="if(this.value==this.defaultValue) this.value='';" onblur="if(this.value=='') this.value=this.defaultValue;" />
<input name="submit" value="Sök" type="submit" />
</form>
</div>
http://nagot.se.vonanka.kontrollpanelen ... pixelgreen
Mark's comments have been helpful, but obviously not all the way
http://forum.cmsmadesimple.org/index.ph ... 169.0.html
Searching on
Code: Select all
{Search}
I am VERY grateful for help
IBN