Quote from: rthrash at Sep 16, 2008, 11:36 AM
Certainly shouldn’t hurt and is definitely recommended.
I’ve upgraded to 0.9.6.2.
I had issues with eForm 1.4.4, AjaxSearch 1.5 and FileDownload 2.6.
With eForm, I had to initiate the form with (note the slash):
[tt]<form method="post" action="/[~[*id*]~]">[/tt]
Without the slash, pressing submit on a form on
[tt]myurl.nl/contact/inschrijven/[/tt] would lead to Modx trying to open the page
[tt]myurl.nl/contact/contact/inschrijven/[/tt]
With AjaxSearch 1.5, in the plugin code I had to change this:
[tt]// establish results page
if (isset($AS_landing)) { // set in snippet
$searchAction = "[~".$AS_landing."~]";
} elseif ($resultsPage > 0) { // locally set
$searchAction = "[~".$resultsPage."~]";
} else { //otherwise
$searchAction = "[~".$modx->documentIdentifier."~]";
}
//My Modification
$searchAction = "/" . $searchAction;[/tt]
Again, without this, Modx would duplicate the alias in the resulting url.
0.9.6.2 upgraded AjaxSearch to 1.7.1, which doesn’t have the same code in the snippet and also works out-of-the-box, hurray!
With FileDownload, I haven’t found a hack that solves my problem.
I’m calling the snippet as:
[tt][!FileDownload? &tplList=`FileDownload-tpl` &getFolder=`assets/files/nieuwsbrieven`!][/tt]
The resulting urls on the files as reported by FileDownload are:
[tt]
http://myurl.nl/login/assets/files/nieuwsbrieven/nieuwsbriefAPRILnr%206%202008%20nr%201.pdf[/tt]
Whereby login is the alias of the parent of the Modx document containing the call to FileDownload.
In short: it looks like there’s something still wrong that hasn’t been fixed by upgrading to 0.9.6.2. I’m getting to the point where I think it’s a simple setting that I haven’t found yet, but I’m at a complete loss here.
Help appreciated. BTW: Thanks very much for 0.9.6.2, and even more the smooth upgrade. I wish more software packages make upgrading as easy as Modx!