We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    As I posted on your other thread, you have absolute URLs to your css files:
        <link href="/assets/templates/wikima4/css/patches/patch_central.css" rel="stylesheet" type="text/css" />

    Get rid of the first / in each of these, and it will work.
      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
      ok will try this and will get back as soon as I get the results
        • 30086
        • 110 Posts
        Quote from: sottwell at Aug 19, 2010, 08:28 AM

        As I posted on your other thread, you have absolute URLs to your css files:
            <link href="/assets/templates/wikima4/css/patches/patch_central.css" rel="stylesheet" type="text/css" />

        Get rid of the first / in each of these, and it will work.

        @sottwell: where can i find this code? i can see the patch_central.css but I wasn’t able to find where to change this?
        if i go to this path: this is what i see:

        @charset "UTF-8";
        /**
         * "Yet Another Multicolumn Layout" - (X)HTML/CSS Framework
         *
         * (en) Example of a patch stylesheet for the Internet Explorer
         *
         * @copyright       Copyright 2005-2009, Dirk Jesse
         * @license         CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/),
         *                  YAML-C (http://www.yaml.de/en/license/license-conditions.html)
         * @link            http://www.yaml.de
         * @package         yaml
         * @version         3.2
         * @revision        $Revision: 430 $
         * @lastmodified    $Date: 2009-10-27 21:15:57 +0100 (Di, 27. Okt 2009) $
         */
        
        /* Layout independent adjustments | Layout-unabhängige Anpassungen ----------------------------------- */
        @import url(/yaml/core/iehacks.css);
        
        /* Box model adjustments for vlist navigation | Box-Modell-Anpassungen für vlist-Navigation */
        @import url(/yaml/patches/patch_nav_vlist.css);
        
        /* Layout-dependent adjustments | Layout-abhängige Anpassungen --------------------------------------- */
        @media screen, projection
        {
          /* add your adjustments here | Fügen Sie Ihre Anpassungen hier ein */
        
        }
          • 30086
          • 110 Posts
          hi again, i’m wondering where i can find this view source code in my templates: i couldn’t find this one:
          please help me thanks



          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
          <head>
              <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
              <title>Wikima4 AG | en</title>
          
              <!-- Grey Box integration -->
              <script type="text/javascript"> 
                  var GB_ROOT_DIR = "/wikima4/assets/js/greybox/";
              </script>      
              <script type="text/javascript" src="/wikima4/assets/js/greybox/AJS.js"></script>     
              <script type="text/javascript" src="/wikima4/assets/js/greybox/AJS_fx.js"></script> 
              <script type="text/javascript" src="/wikima4/assets/js/greybox/gb_scripts.js"></script> 
              <script type="text/javascript" src="/wikima4/assets/js/greybox/greyboxCustom.js"></script> 
              
              <link href="/wikima4/assets/js/greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
          
              <script type="text/javascript">
          var mesaforte_tour_set = [
              {'caption': 'Dashboard', 'url': 'http://localhost/wikima4/index.php?id=279'},{'caption': 'Workbench', 'url': 'http://localhost/wikima4/index.php?id=280'},{'caption': 'Settings - Controls', 'url': 'http://localhost/wikima4/index.php?id=281'},{'caption': 'Settings - Users', 'url': 'http://localhost/wikima4/index.php?id=284'},{'caption': 'Settings - Connections', 'url': 'http://localhost/wikima4/index.php?id=285'},{'caption': 'Settings - Options', 'url': 'http://localhost/wikima4/index.php?id=286'},
              ]
          </script>  
          
              <!-- YAML integration -->    
              <link href="/assets/templates/wikima4/css/central.css" rel="stylesheet" type="text/css"/>
              <!--[if lte IE 7]>
              <link href="/assets/templates/wikima4/css/patches/patch_central.css" rel="stylesheet" type="text/css" />
              <![endif]-->
          	<script type="text/javascript" src="manager/media/script/mootools/mootools.js"></script>
          	<script type="text/javascript" src="assets/snippets/ajaxSearch/js/ajaxSearch.js"></script>
          <!-- start AjaxSearch header -->
          <script type="text/javascript">
          //<![CDATA[
          as_version = '1.8.4';
          advSearch = 'oneword';
          subSearch = 5;
          ucfg = ' &extract=`1:content` &stripOutput=`markdownStripOutput`';
          //]]>
          </script>
          <!-- end AjaxSearch header -->
          
          </head>
          <body class="home">
          <ul id="skiplinks">
              <li><a class="skip" href="#nav">Skip to navigation (Press Enter).</a></li>
              <li><a class="skip" href="#col3">Skip to main content (Press Enter).</a></li>
          </ul>
          <div class="page_margins">
            <div class="page">
              <div id="header">
              <img style="float:right" src="/wikima4/assets/templates/wikima4/css/images/logo_swiss_trans.gif" alt="Swiss Quality"/>
          
               <div id="topnav">
              <a title="English" href="index.php?id=1">English</a> | <a title="Deutch" href="index.php?id=11">Deutsch</a> | <a title="Français" href="index.php?id=6">Français</a>
          </div>
          
          <form id="ajaxSearch_form"  action="index.php?id=1" method="post">
              <fieldset>
              <input type="hidden" name="advSearch" value="oneword" />
          
              <label for="ajaxSearch_input">
                <input id="ajaxSearch_input" class="cleardefault" type="text" name="search" value="Search here..." onfocus="this.value=(this.value=='Search here...')? '' : this.value ;" />
              </label>
              <label for="ajaxSearch_submit">
                <input id="ajaxSearch_submit" type="submit" name="sub" value="Go!" />
              </label>
              </fieldset>
          </form>
          
          
          <div id="ajaxSearch_output"></div>
          
          
          </div>
              <div id="nav">
              <div class="hlist">
                      <ul><li><a href="/wikima4/index.php?id=2" title="Company" >Company</a></li>
          <li><a href="/wikima4/index.php?id=3" title="Solutions" >Solutions</a></li>
          <li><a href="/wikima4/index.php?id=4" title="Service" >Service</a></li>
          <li><a href="/wikima4/index.php?id=5" title="Products / mesaforte" >Products / mesaforte</a></li>
          
          <li><a href="/wikima4/index.php?id=97" title="Resource Center" >Resource Center</a></li>
          <li class="last"><a href="/wikima4/index.php?id=104" title="Analyst Research" >Analyst Research</a></li>
          </ul>
              </div>
          </div>
              
              <!-- begin: main content area #main -->
              <div id="main">
          
                  <!-- begin: #col2 second float column -->
                  <div id="col2">
          
                      <div id="col2_content" class="clearfix">
                          <a id="mf_tour" href="#" onclick="return GB_mfTour(mesaforte_tour_set, 1)"></a>
                          <h6 class="vlist">News</h6>
          <ul class="vlist"><li><a href="/wikima4/index.php?id=354" title="New SAP Penetration Test with SAP Gateway cracker!" >New SAP Penetration Test with SAP Gateway cracker!</a></li>
          </ul>
                          <h6 class="vlist">Events</h6>
          <ul class="vlist"><li><a href="/wikima4/index.php?id=360" title="Offenes Arbeitsmeeting der IGSAP" >Offenes Arbeitsmeeting der IGSAP</a></li>
          <li><a href="/wikima4/index.php?id=359" title="DSAG Jahrestagung" >DSAG Jahrestagung</a></li>
          
          <li class="last"><a href="/wikima4/index.php?id=357" title="SAP Vulnerability & Solutions" >SAP Vulnerability & Solutions</a></li>
          </ul>
                          <h6 class="vlist">Articles</h6>
          <ul class="vlist"><li><a href="/wikima4/index.php?id=276" title="Governance, Risk and Compliance" target="_blank" rel="gb_page_center[800, 600]">Governance, Risk and Compliance</a></li>
          </ul>
                          <h6 class="vlist">Success Stories</h6>
          <ul class="vlist"><li><a href="assets/files/pdf/Mesaforte_Sucess-Story Verbund_Low.pdf" title="VERBUND" target="_blank" rel="gb_page_center[800, 600]">VERBUND</a></li>
          </ul>
                      </div>
          
                  </div>
                  <!-- end: #col2 -->
          
                  <!-- begin: #col3 static column -->
                  <div id="col3">
                      <div id="col3_content" class="clearfix">
                          <div id="home">
                              <div id="wikima4-home">
                                  <p class="float_left"><a href="index.php?id=4">wikima4</a></p>
          
                              </div>
                              <div id="mesaforte-home">
                                  <p class="float_right"><a href="index.php?id=5">mesaforte</a></p>
                              </div>
                          </div>
                          <table class="teaser" cellspacing="0">
              <tbody>
                  <tr>
          
                      <td class="service" width="33%">
              <h3>Our Services</h3>
              <p class="floatbox">
                  <!--<img class="float_left" src="assets/images/logo.png"/>-->
                  Explore the wonderful world of wikima4 service.
              </p>
              <p class="floatbox">
                  <a class="float_right" href="index.php?id=4">Read more...</a>
          
              </p>    
          </td><td class="product" width="33%">
              <h3>Our Products</h3>
              <p class="floatbox">
                  <!--<img class="float_left" src="assets/images/logo.png"/>-->
                  Explore the wonderful world of wikima4 products.
              </p>
              <p class="floatbox">
                  <a class="float_right" href="index.php?id=5">Read more...</a>
          
              </p>    
          </td><td class="service" width="33%">
              <h3>Our Solutions</h3>
              <p class="floatbox">
                  <!--<img class="float_left" src="assets/images/logo.png"/>-->
                  Explore the wonderful world of wikma4 solutions.
              </p>
              <p class="floatbox">
                  <a class="float_right" href="index.php?id=3">Read more...</a>
          
              </p>    
          </td>
                  </tr>
              </tbody>
          </table>
                  </div>
                      <!-- IE column clearing -->
                      <div id="ie_clearing"> </div>
                  </div>                
                  <!-- end: #col3 -->
          
              </div>
              <!-- end: #main -->
              
              <div id="footer">
          Layout based on <a href="http://www.yaml.de/">YAML</a> | Valid <a href="http://validator.w3.org/check/referer">XHTML</a>
          </div>
            </div>
          </div>
          <!-- full skiplink functionality in webkit browsers -->
          
          <script src="/localhost/wikima4/assets/templates/wikima4/yaml/core/js/webkit-focusfix.js" type="text/javascript"></script>
          </body>
          </html>
          
            • 30086
            • 110 Posts
            Quote from: sottwell at Aug 19, 2010, 08:28 AM

            As I posted on your other thread, you have absolute URLs to your css files:
                <link href="/assets/templates/wikima4/css/patches/patch_central.css" rel="stylesheet" type="text/css" />

            Get rid of the first / in each of these, and it will work.

            hi i think i found this one, it’s actually in the localhost/mysite/manager in the templates:
            I took all the "/" in each templates, but it is still the same.
            I’m still having the same white background
            please help...
              • 30086
              • 110 Posts
              Is anyone here? please see my questions:-(need help thanks

              btw here is the template i found: but with this it is still not working.

              <head>
                  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
                  <title>[(site_name)] | [*pagetitle*]</title>
              
                  <!-- Grey Box integration -->
                  <script type="text/javascript"> 
                      var GB_ROOT_DIR = "assets/js/greybox/";
                  </script>      
                  <script type="text/javascript" src="assets/js/greybox/AJS.js"></script>     
                  <script type="text/javascript" src="assets/js/greybox/AJS_fx.js"></script> 
                  <script type="text/javascript" src="assets/js/greybox/gb_scripts.js"></script> 
                  <script type="text/javascript" src="assets/js/greybox/greyboxCustom.js"></script> 
                  
                  <link href="assets/js/greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
                  {{mesaforte-tour-set}}  
              
                  <!-- YAML integration -->    
                  <link href="assets/templates/wikima4/css/central.css" rel="stylesheet" type="text/css"/>
                  <!--[if lte IE 7]>
                  <link href="assets/templates/wikima4/css/patches/patch_central.css" rel="stylesheet" type="text/css" />
                  <![endif]-->
              </head>



              And this is the original and i deleted the "base_url" but it is still the same:
              <head>
                  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
                  <title>[(site_name)] | [*pagetitle*]</title>
              
                  <!-- Grey Box integration -->
                  <script type="text/javascript"> 
                      var GB_ROOT_DIR = "[(base_url)]assets/js/greybox/";
                  </script>      
                  <script type="text/javascript" src="[(base_url)]assets/js/greybox/AJS.js"></script>     
                  <script type="text/javascript" src="[(base_url)]assets/js/greybox/AJS_fx.js"></script> 
                  <script type="text/javascript" src="[(base_url)]assets/js/greybox/gb_scripts.js"></script> 
                  <script type="text/javascript" src="[(base_url)]assets/js/greybox/greyboxCustom.js"></script> 
                  
                  <link href="[(base_url)]assets/js/greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
                  {{mesaforte-tour-set}}  
              
                  <!-- YAML integration -->    
                  <link href="/assets/templates/wikima4/css/central.css" rel="stylesheet" type="text/css"/>
                  <!--[if lte IE 7]>
                  <link href="/assets/templates/wikima4/css/patches/patch_central.css" rel="stylesheet" type="text/css" />
                  <![endif]-->
              </head>
                • 30086
                • 110 Posts
                hi again i read from this site:
                http://wiki.modxcms.com/index.php/Moving_Site_To_Another_Location

                that you have to make sure that all the head of the templates has this.

                <base href="[(site_url)]" />


                do you need to write something inside the URL?

                It was quite strange, because I also saw that every time I click a site then there’s a cache.
                And with the cache I also removed the "/" and then it some pictures appear but not the background and the lay-out of the template.

                how can i make this work? I’ve been working for this since last week and it seems i’m going nowhere.
                i really appreciate your help
                thanks
                  • 3749
                  • 24,544 Posts
                  Quote from: tintincute at Aug 23, 2010, 05:41 PM

                  hi again i read from this site:
                  http://wiki.modxcms.com/index.php/Moving_Site_To_Another_Location

                  that you have to make sure that all the head of the templates has this.

                  <base href="[(site_url)]" />


                  do you need to write something inside the URL?


                  No, it should be entered exactly as written, square brackets, quote marks, and parentheses included.

                  If you’re using MODx Revolution, however, it should be:

                  <base href="[[++site_url]]" />


                  If you’re not seeing things properly, be sure to do an upgrade install at the new site. That will set the value of the site_url system setting that’s used in the tag.
                    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