We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Be sure you have this in the <head> section of all templates:

    Evolution:

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



    Revolution:

    <base href="[[++site_url]]" />
      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
      • 30086
      • 110 Posts
      my templates is designed very differently, i can’t find this one:

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

      where can i find this?
        • 8609
        • 607 Posts
        This should be in the head section of your template, between the <head> and </head> tags.

        The paths to your css files should then be relative "assets/templates/..." as opposed to being absolute. The advantage with doing it this way is that if you move sites then the paths still work, as opposed to an absolute url setup where you’d have to go in and manually change all the paths again.

        What does the head section of your template look like? Can you post the code here?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          um... /assets/templates... is absolute beginning at the web root; relative would be just assets/templates... relative to the index.php file.

          that is probably the whole problem; the path to the css file probably begins with the /, but you have your local installation in a subdirectory and not in the web root directory (www, htdocs, public_html).
            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
            • 8609
            • 607 Posts
            You’re right Susan, my bad. That initial / before assets should not be there... typo. I’ve edited the post to remove it. Sorry for any confusion.
              • 30086
              • 110 Posts
              @einsteinsboi: hmm, this is really strange.

              in my templates from my original folder, i can see two folders: css & yaml
              and under the css it has folders as well:
              images
              navigations
              patches
              screen
              search
              central.css


              yaml:
              add-ons
              core
              navigation
              patches
              print
              screen
              central draft.css
              markup draft.html


              Which one should i post here?

              Thanks





                • 30086
                • 110 Posts
                Quote from: BobRay at Aug 18, 2010, 04:57 PM

                Be sure you have this in the <head> section of all templates:

                Evolution:

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



                Revolution:

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


                Where can I see this?
                  • 8609
                  • 607 Posts
                  Quote from: tintincute at Aug 19, 2010, 02:18 AM

                  @einsteinsboi: hmm, this is really strange.

                  in my templates from my original folder, i can see two folders: css & yaml
                  and under the css it has folders as well:
                  images
                  navigations
                  patches
                  screen
                  search
                  central.css


                  yaml:
                  add-ons
                  core
                  navigation
                  patches
                  print
                  screen
                  central draft.css
                  markup draft.html


                  Which one should i post here?

                  Thanks



                  What will be helpful is for you to post the content from the head section of your template. All the stuff between the <head> and </head> tags.

                  I noticed that you have another thread going on this same problem, it’s better if you stick to one thread so we can keep track of what’s going on.
                    • 30086
                    • 110 Posts
                    sorry about that: this is the template I got: i can’t see any html tag:
                    What I can do also, I can also open this: localhost/mysite and then right click and copy the view source.
                    Would that help?



                    @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);
                      • 30086
                      • 110 Posts
                      Now I will stick to this one:
                      Here is the view source I got when I right click on my: localhost/mysite



                      <!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>