Well, it looks like you are doing response.title/subtitle with
{{=response.title or 'T2'}} so I guess the search could be done like
that with \ to break a large string??
{{= response.google_search or '\
<div id="search">\
<form method="get" action="http://www.google.com/search">\
<fieldset>\
<input id="search-text" type="text" name="as_q" value=""
size="15"/>\
<input type="hidden" name="as_sitesearch"
value="{{=request.env.http_host}}">\
<input type="submit" id="search-submit" value="Search" />\
</fieldset>\
</form>\
</div>'
?? - not sure - but something like that.
On Nov 19, 9:29 am, "Wes James" <[EMAIL PROTECTED]> wrote:
> Massimo,
>
> Would you mind making a response variable for the t2 google search
> box? You have response.title and response.subtitle for the t2
> layout.html. How about response.google_search=(0|1) and in the layout
> put:
>
> {{if response.google_search:}}
> <div id="search">
> ....
> </div>
> {{pass}
>
> thx,
>
> -wj
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---