We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32380
    • 137 Posts
    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.
      • 25663 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
        • 32380
        • 137 Posts
        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?
          • 22303 MODX Staff
          • 10,725 Posts
          Quote from: wiggy at Mar 04, 2008, 09:42 AM

          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?
          See http://modxcms.com/forums/index.php/topic,15753.0.html
            • 32380
            • 137 Posts
            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)
              • 32380
              • 137 Posts
              Please ignor my stupidity, have to reed more carfully. Problem solved!!!!!

              many thanks for you help !
                • 2742
                • 13 Posts
                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"