MODx Advanced FAQ
If you don't find an answer here, ask for help in the appropriate section of the MODx Forums. If they might have a bearing on your problem, be sure to include your browser version, MODx version, hosting service, Apache version, PHP version, and MySQL version.
What's the difference between site_url and base_url when used in tags?
Your template should always include a base href statement using the site_url:
<base href="[(site_url)]"></base>
What's the proper way to create a link to a page at my site?
[˜##˜](where ## is the document ID of the document being linked to. Example:
<a href = "[˜12˜]">Link to document 12</a>If you would like a fully qualified link for SEO purposes, you can use this form instead:
<a href = "[(site_url)][˜12˜]">Link to document 12</a>
I can't get Friendly URLs to work in XAMPP. What am I doing wrong?
LoadModule rewrite_module modules/mod_rewrite.so
How can I get the document ID of the current document in a plugin?
$docid = $e->params['id'];
What other params are available to plugins attached to system events?
What causes this error? Fatal error: Allowed memory size of 33554432 bytes exhausted
Another possibility is a snippet such as Ditto, that pulls content from a page that has the same Ditto tag on it (or in the template attached to it).
Finally, if your memory limit is 32M or less, Ditto and some other snippets can exhaust it in their normal operation. Try increasing the memory_limit setting in php.ini.
I have extra back-slashes showing up in my code. Where are they coming from?
How can I send parameters in a URL from a snippet in Revolution?
$url = $modx->makeUrl($id, '', 'paramName=value');
How did you create this marvelous FAQ?
When I cut and paste code from this site, it doesn't always work. Why?
<!-- -->
Thank you for visiting BobsGuides.com
— Bob Ray
