I have changed my site to Use friendly alias paths, but the quick editor is now broken, it work on the root pages but not on the chils files? is there a quick fix, i have had to add a / to all of my images and links.
-
MODX Staff
- 12,272 Posts
Add <base href="[(site_url)]"></base> to the top of every template in the head section before any calls to JS or CSS files.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
New problen , i have an anchor link that scrolls the page back to the top but scince adding the new tag in the head the anchor link no longer works and suggestions?
Thanks for your quick reply
but im having a little proble
i have added a plugin called: OnWebPagePrerender
with following code excluding the <php tags
$e= & $modx->Event;
switch ($e->name) {
case "OnWebPagePrerender" :
$modx->documentOutput= str_replace(’href="#’, ’href="’ . $modx->makeUrl($modx->documentIdentifier) . ’#’, $modx->documentOutput);
break;
}
but am still having the same problem? keeps redirecting me to the home pahe (root)
Please ignor my stupidity, have to reed more carfully. Problem solved!!!!!
many thanks for you help !
Quote from: wiggy at Mar 04, 2008, 10:04 AM
Please ignor my stupidity, have to reed more carfully. Problem solved!!!!!
many thanks for you help !
Hi Wiggy,
I have problem with quick edit too, but I have solve the problem with editing quickedit file and put variable $modx->config[’base_url’] in front of line that relation with loading javascript, css for quick edit.
Can you describe what you solve to us please ?
Thx
Bali Web Design - www.babonmultimedia.com
"When my brain got bottleneck of code, get into the garden , drink cup a coffee and enjoy Sun shining and warm weather in tropical island"