Have a weird bug with redirecting the results to a different landing page.
My search snippet call looks like this:
[[SimpleSearchForm? &landing=`2420` &tpl=`SimpleSearch`]]
- If i search when i’m on the root level (homepage) everything works fine: /search-results?id=2420&search=kim (not sure why there is an ID in the url of that landing page, but this is for another discussion)
- If i search on a sub level (ie: /sports/), that page gets added to the url thus breaking it: /sports/search-results?id=2420&search=kim
Am i doing something wrong?
Thanks!
Aleks
MODx Revo 2.0.6-pl (Traditional) | Apache 2.2.3 | PHP 5.2.14 | MySQL 5.0.77 | MAC OS 10.6.5 | FF 3.6/Chrome 9.0.5
my bad... realized that i didnt have a / in the action for the search form:
<form action="/[[~[[+landing:default=`[[*id]]`]]]]" method="[[+method:default=`get`]]">
MODx Revo 2.0.6-pl (Traditional) | Apache 2.2.3 | PHP 5.2.14 | MySQL 5.0.77 | MAC OS 10.6.5 | FF 3.6/Chrome 9.0.5
Thank you for producing a very helpful snippet.
I’m wondering how to modify the look of the search (form?). What I want to change is the text to the left of the input text area. I’ve found that going into lexicon management the text can be changed, but it also changes the text of the button.
My guess is that it should be possible to create a new lexicon entry so that the text and button have different values. However i don’t know enough to change the snippet code. I suspect it would be relatively simple.
Thanks for any help.
Rob