Please file this here: http://bugs.modxcms.com/
1) the configuration setting "Automatically generate aliases" should be Yes/No, instead of "Textfield".
That’s expected behaviour; do: http://www.mysite.com/test.html
2) if I have a resource whose alias is "test", the web address http://www.mysite.com/?q=test does not work (it redirects to the first page; http://www.mysite/?q=4 works, as expected, since the page id is 4).
Ok
Quote from: madmage at Jan 07, 2010, 10:45 AMPlease file this here: http://bugs.modxcms.com/
1) the configuration setting "Automatically generate aliases" should be Yes/No, instead of "Textfield".
Quote from: madmage at Jan 07, 2010, 10:45 AMThat’s expected behaviour; do: http://www.mysite.com/test.html
2) if I have a resource whose alias is "test", the web address http://www.mysite.com/?q=test does not work (it redirects to the first page; http://www.mysite/?q=4 works, as expected, since the page id is 4).
Containers are suffixed with the setting container_suffix, which is by default "/". So if your Resource alias is test and it’s marked as a container, the URI will be test/ or index.php?q=test/. If it’s not marked as a container, the URI would be test.html or index.php?q=test.html.
However, is there any tutorial about how to manage containers with friendly URLs? It seems not to be considered (or optional) in the q= part of the url, but a link to a container makes something wrong with the final slash (going in one "directory" does not display the content of that page, and going in one directory and then another, append the second directory to the first)
<base href="[[!++site_url]]" />
Quote from: madmage at Jan 07, 2010, 11:34 AMContainers are suffixed with the setting container_suffix, which is by default "/". So if your Resource alias is test and it’s marked as a container, the URI will be test/ or index.php?q=test/. If it’s not marked as a container, the URI would be test.html or index.php?q=test.html.
However, is there any tutorial about how to manage containers with friendly URLs? It seems not to be considered (or optional) in the q= part of the url, but a link to a container makes something wrong with the final slash (going in one "directory" does not display the content of that page, and going in one directory and then another, append the second directory to the first)
Also, as has always been the case with MODx, you need to use a base tag in your template HEAD since all requests handled by MODx are handled from the root (i.e. all generated URLs are relative to the site_url), regardless of the virtual sub-directory you are accessing.<base href="[[!++site_url]] />