-
- 708 Posts
Simple Site works for files in the root; search for a term and the 'results' page (which also lives in the site root) displays them. All good. But when searching from pages that live in sub-folders, e.g., 'file 1',
Site Root
> search results page
>> Folder 1
>>> file 1
Simple Search looks for the results page in 'Folder 1' instead of the site root which doesn't work.
Is there a way to always make it look for the results page in the site root or do I need to add a separate results page in every folder of the site?
Thanks
Todd
Are you using &landing to specify the results page id?
[[!SimpleSearchForm? &tpl=`SearchFormTpl` &landing=`12` &hideMenu=`2`]]
.
Does it fail to locate id 51? What happens? That's quirky if you ask me. It shouldn't matter where the resource is located since it's being specified.
Now you got me wondering... I have to admit I haven't bothered to search from a child page while testing SimpleSearch.
Hm. I cannot reproduce the error. It always goes to the correct page.
What version of MODx? SimpleSearch?
What are your system_settings for Friendly URLs? Do you have any plugins installed that meddle with URLs? Is your .htaccess file modified from the original?
I don't see anything that should cause it to do that.
What does your search form tpl look like?
No, I meant the tpl for the search form, the mySearchForm chunk.