$resultPageLinks .= '<a href="[~' . $modx->documentObject['id'] . '~]&AS_offset=' . $nrp . '&AS_search=' . urlencode($searchString) . '">' . $resultPageLinkNumber . '</a>';
$SearchForm.='<a class="ajaxSearch_resultLink" href="[~'.$SearchFormsrc['id'].'~]&searched='.urlencode($searchString).'&highlight='.urlencode($highlightClass).'" title="' . $SearchFormsrc['pagetitle'] . '">' . $SearchFormsrc['pagetitle'] . "</a>".$newline;
Though you can still use & because technically, friendly URLs still include ?q=alias in the URL, which is just rewritten without the ?. In my experience, everything still works fine even though the rewritten URLs do not seem to include a ?.
The MODx parser normally creates links like "index.php?id=xx" when it sees [~xx~], so any additional options need to be with &. Although this can be different if "friendly urls" are used, since then the parser will use the alias to create the URL.
Though you can still use & because technically, friendly URLs still include ?q=alias in the URL, which is just rewritten without the ?. In my experience, everything still works fine even though the rewritten URLs do not seem to include a ?.
http://localhost/searchresults.html&AS_offset=10&AS_search=testsearch
$resultPageUrl= $modx->makeUrl($modx->documentIdentifier, '', 'AS_offset=' . $nrp . '&AS_search=' . urlencode($searchString)); $resultPageLinks .= '<a href="'. $resultPageUrl .'">' . $resultPageLinkNumber . '</a>';



The Ajax part can be turned off, just set &ajaxSearch=`0` and it’s a standard search tool.
I have to do some rewriting anyway, so I can search my maxigallery descriptions and the content produced by a forum snippet I’ve written. I also want to produce a more sophisticated search in the long run, including partial matches and filtering by website section. While I’m pretty good with php, javascript (or more accurately, the DOM) confuses me no end, so I’d be happy to chop out the extras 

This discussion is closed to further replies. Keep calm and carry on.