[consulting] how can we make the form action in search to be always on root (/)

Kevin Davison kevin at quevin.com
Fri Jun 11 15:52:09 UTC 2010


Have you tried hook_form_alter on the #action?
http://api.drupal.org/api/function/hook_form_alter/6
K

On Jun 11, 2010, at 08:13 AM, liza chua wrote:

> This can be a similar problem with http://drupal.org/node/740976#comment-3077806 but our team would actually want to have the form action in search box to be set always on root (/) like displayed below:
> 
> <form action="/"  accept-charset="UTF-8" method="post" id="search-theme-form">
> 
> To give you an overview of the scenario, the search will perform from the page where you are currently at. For ex.
> 
> Page 1 Scenario: http://www.mysite.com/content/page1, the form action will be 
> 
> <form action="/content/page1"  accept-charset="UTF-8" method="post" id="search-theme-form">
> 
> Page 2 Scenario: http://www.mysite.com/content/page2, the form action will be 
> 
> <form action="/content/page2"  accept-charset="UTF-8" method="post" id="search-theme-form">
> 
> this will all be the same in all page within our site. Can anyone lend a hand? Thank you very much, as always!
> 
> Liza
> 
> _______________________________________________
> consulting mailing list
> consulting at drupal.org
> http://lists.drupal.org/mailman/listinfo/consulting

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/consulting/attachments/20100611/394f86e5/attachment.html 


More information about the consulting mailing list