We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37572
    • 11 Posts
    Guys,

    i dont know what is happening to my site, but every time i edit a region in the content manager something stop showing correctly,

    now my site ( http://www.secondhand-bmw.co.uk/used-cars.html

    the content isnt being dragged from the database anymore!

    it should look like this!! ( http://2lb.co.uk/secondhand-bmw/used-cars.html )

    here is the the template coding within the content manager

    <!DOCTYPE HTML>
    <html>
    <head>
    <title>[(site_name)] | [*pagetitle*]</title>
    <meta http-equiv="Content-Type" content="text/html; charset=[(charset)]" />
    <base href="[(site_url)]">
    <link rel="stylesheet" href="assets/layout.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="assets/nav.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="assets/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
    <script src="assets/js/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="assets/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
    
    <script src="cufon-yui.js" type="text/javascript"></script>
    <script src="Helvetica_Neue_700-Helvetica_Neue_800-Helvetica_Neue_italic_700-Helvetica_Neue_italic_800.font.js" type="text/javascript"></script>
    <script type="text/javascript">
    			Cufon.replace('h1'); 
    			Cufon.replace('h2'); 
    			Cufon.replace('h3'); 
    			Cufon.replace('h4'); 
    			Cufon.replace('h5'); 
    </script>
    <link type="image/x-icon" href="http://secondhand-bmw.co.uk/favicon.ico">
    </head>
    <body>
    <div id="wrapper">
    
       {{header}}
            <div id="pagecontent"> [[pagefilter? &type=`[*pagetype*]`]] </div>
      </div>
      {{footer}}
    </div>
    <script>
     $(document).ready(function() {
        $("a[rel^='prettyPhoto']").prettyPhoto();
    });
    </script>
    </body>
    </html>
    
      • 3749
      • 24,544 Posts
      It appears that this line is inserting the page content using a snippet called pagefilter and a template variable called pagetype:


      <div id="pagecontent"> [[pagefilter? &type=`[*pagetype*]`]] </div>


      That means that that snippet has to exist and that TV has to be set for every page. You don't say what version of MODX you're using, but it's possible that the snippet is outdated.

      BTW, those two pages look identical to me -- maybe you've fixed it.

        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
        • 37572
        • 11 Posts
        yes fixed it thanks