Update search form on template
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 22 Oct 2013 12:52:16 +0000 (12:52 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 22 Oct 2013 12:52:16 +0000 (12:52 +0000)
Need to setup the form just like it was a QuickForm.

Toolkit/Page.php
templates/template.html

index 1727cc1..f88e29c 100755 (executable)
@@ -452,6 +452,8 @@ class Toolkit_Page
         $this->tripPlannerUrl   = Toolkit_Template_Page::getSeoUrl(
             $this->_pageGateway, MEMBER_SESSION_PAGE
         );
+        $this->findTrailAction = $this->baseURL . 'index.php?_qf__SearchForm='
+            . '&catid=3&search=1';
         $this->_setupTrailSearchForm();
 
         // check if define for GOOGLE_SEARCH is set
index 1ade6bb..3aef542 100755 (executable)
                                        <form
                         id="findTrail"
                         name="findATrail"
-                        method="post"
-                        action="{baseURL:h}find-trails-3/"
+                        method="get"
+                        action="{findTrailAction:h}"
                         flexy:ignore="yes">
+                        <input type="hidden" name="_qf__SearchForm" value="">
                         <input type="hidden" name="search" value="1">
+                        <input type="hidden" name="catid" value="3">
                                                <select
                             name="activityId"
                             id="activity"