You must set the option to clear the cache in NewsPublisher, and then you will need to load another request (which picks up the updated siteCache containing the updated map of document aliases) in order to see the proper URL from the makeUrl() function. The new URL is not available until the siteCache is reloaded...
Quote from: OpenGeek at Jun 21, 2007, 02:17 PM
You must set the option to clear the cache in NewsPublisher, and then you will need to load another request (which picks up the updated siteCache containing the updated map of document aliases) in order to see the proper URL from the makeUrl() function. The new URL is not available until the siteCache is reloaded...
<beg>I have the exact same problem as tommyt - but I am a bare bones newb on MODx so this response is about 10,000 feet over my head. Could I please get a private message with very specific instructions (with code) on what to do to resolve this as it is a huge issue for me - most of my site will be published articles and blog entries.
Please help! Thanks much! </end beg>
&clearcache=`1`
In your call to NewsPublisher, addto the snippet call (note that those are back-ticks, not quotes around the 1 -- the back-tick is usually on the ~ key). If that’s still going over your head, paste the NewsPublisher snippet call into a message here and I’ll fix it for you.&clearcache=`1`
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
If your site is www.mydomain.com/site you need to
add this to RewriteBase /site
http://wiki.modxcms.com/index.php/Friendly_URLs_Guide
This discussion is closed to further replies. Keep calm and carry on.