-
- 964 Posts
action="[[~[[+landing:default=`[[*id]]`]]]]"
Try getting rid of the default in your template,
seems to be defaulting to the page where the search form is...
Website: www.mercologia.com
MODX Revo Tutorials: www.modxperience.com
MODX Professional Partner
-
- 964 Posts
This is the call in my website:
[[!SimpleSearchForm? &landing=`53` &method=`POST` &tpl=`topSearch`]]
I use POST just because I dont like GET...
And this is my tpl:
<form class="sisea-search-form" action="[[~[[+landing:default=`[[*id]]`]]]]" method="[[+method:default=`get`]]">
<fieldset>
<input type="text" name="[[+searchIndex]]" value="[[+searchValue]]" />
<input type="submit" value="[[%sisea.search? &namespace=`sisea` &topic=`default`]]" />
</fieldset>
</form>
and it works... as you can see is the same as yours, except that yours does not have the fieldset, but that makes no difference...
Website: www.mercologia.com
MODX Revo Tutorials: www.modxperience.com
MODX Professional Partner
-
- 964 Posts
Nope, 1.1.0-pl
I have not updated it because it is working...
so maybe it has a bug...
please go to the support page and reference this thread or
if you feel it is a bug, go to the github issue page for SimpleSearch.
Website: www.mercologia.com
MODX Revo Tutorials: www.modxperience.com
MODX Professional Partner
-
- 12 Posts
Thanks, that solves the problem, using post instead of get.
-
- 535 Posts
i think the documentation should be updated .. :
http://rtfm.modx.com/display/ADDON/SimpleSearch.SimpleSearchForm.tpl
the default chunk should be now (extract from the files system) :
<form class="sisea-search-form" action="[[~[[+landing:default=`[[*id]]`]]]]" method="[[+method:default=`get`]]">
<fieldset>
<label for="[[+searchIndex]]">[[%sisea.search? &namespace=`sisea` &topic=`default`]]</label>
<input type="text" name="[[+searchIndex]]" id="[[+searchIndex]]" value="[[+searchValue]]" />
<input type="hidden" name="id" value="[[+landing:default=[[*id]]]]" />
<input type="submit" value="[[%sisea.search? &namespace=`sisea` &topic=`default`]]" />
</fieldset>
</form>
note the : type="hidden" name="id"
CTRL+SHIFT+U - Clear Cache
CTRL+SHIFT+H - Hiding Heft Panel
CTRL+SHIFT+N - Fast Create Resource
CTRL+ALT+P - Preview Recource (in edit resorce window)
CTRL+ALT+S - Save