We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30086
    • 110 Posts
    Hi
    Just an update:
    What I did: I copied all the templates from the real site server to my local server.
    And then I am not getting the error message anymore. I guess that was the solution to my problem. But now if I preview from the localhost/manager it will open the localhost/site, the template is not showing. I just got a white background and then, all the links from the real website.

    Do I need to change the path of the images in my localhost/manager?
    Please help I need your advise
    Thanks

    ==
    I need your help, please anybody there!!

      • 30086
      • 110 Posts
      hello there,
      how can i have the template from the real website to my localserver
      i installed the CMS and also imported the db from the real website to the local server, so far it worked fine.
      but then if i preview the template the background is not there, what settings do i have to change?
      please help thanks

      do i need to change something here:

      ======

      Just an update again. Where can I find this? I’ve read this from this site: http://codingpad.maryspad.com/2009/03/31/building-a-website-with-modx-for-newbies-part-3-working-with-templates/
      But don’t really know where to add this base href[(site url)]

      can someone please help me?
      Thanks
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Did you copy the assets/templates/<template-name> files to the local installation? The database only holds the resources and elements from the Manager, it does not deal with any files such as js, css or image files you may have in the original site.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 30086
          • 110 Posts
          yes i copied it and i can see all the links of the real website in my local PC but then the correct template doesn’t appear
          what seems to be the problem?


          in my configuration, i can see the template now but why it is not working?
            • 3749
            • 24,544 Posts
            <base href="[(site_url)]" />
            goes in the <head> section of your templates.

            If that doesn’t solve your problem, try doing an upgrade install (uncheck the sample site and all components).
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Can you post the <head>...</head> section of your template? Also where, exactly, do you have MODx installed? In the root of your webspace (www, htdocs, public_html) or in a subdirectory?
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 30086
                • 110 Posts
                if I go to the template this is what I see: I have two folders css and yaml
                and under the css folder there are 5 folders and 1 file which is central.css
                and this is the code I got:so not really sure where to find this base ref

                @charset "UTF-8";
                /**
                 *
                 * ------------------------------------------------------
                 * Company - CENTRAL on top of YAML
                 * ------------------------------------------------------
                 *
                 * @author 
                 */
                
                /* import core styles */
                @import url(localhost/wikima4/assets/templates/wikima4/yaml/core/base.css);
                
                
                /* import screen layout */
                @import url(localhost/wikima4/assets/templates/wikima4/css/screen/basemod.css);
                @import url(localhost/wikima4/assets/templates/wikima4/css/screen/content.css);
                
                /* import navigation */
                @import url(localhost/wikima4/assets/templates/wikima4/css/navigation/main_nav.css);
                @import url(localhost/wikima4/assets/templates/wikima4/css/navigation/section_nav.css);
                
                /* import search */
                @import url(localhost/wikima4/assets/templates/wikima4/css/search/search.css);
                
                /* import print layout */
                /* @import url(/css/print/print_003.css); */
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  I answered this in the other thread. You really shouldn’t post in two areas, it only leads to confusion.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org