Hey,
I want to add the search form directly in the menu of my site. The
menu is a zone which is included in code.skin such as [[menu]]. It
seems to work using this code (a copy of default action.search without
[results]):
[form action="?p=action.search&action=search" style="margin-left:10px;
position:absolute; width:110px; display:inline;"][text myquery][submit
SEARCH]
[session search "text='{=myquery}' count='1-25'"]
[session passdata myquery]
[session nextpage {p}&action=search]
[session msg]
[form]
However, since I would like a custom styled input field, and an image
instead of a submit button, I couldn't figure out a way to do this. If
there basically was a way to just include normal html code inside the
form I think it might succeed. I tried using the operator /= =/ to do
this but it just displayed the code as normal text. Also not that I'm
not sure if these session variables are needed for only the search
form.
[form action="?p=action.search&action=search" style="margin-left:10px;
position:absolute; width:110px; display:inline;"]
/=<input type="text" name="myquery" style="width:80px; height:12px;
border:0px; background-color:#fa3; line-height:0.7em;" />
<input type="image" src="../boltwire/farm/img/search16.png"
style="float:right; margin-top:3px;" />=/
[session search "text='{=myquery}' count='1-25'"]
[session passdata myquery]
[session nextpage {p}&action=search]
[session msg]
[form]
--
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en.