We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27302
    • 154 Posts
    I’m having major problems with a new install of ModX 9.6. I’m using a template that I am currently using successfully on another website. But for some reason on this new website it is refusing to show the page contents. The page name is showing correctly in the URL when I click on the menu items, but the content of the pages themselves doesn’t actually show up. Instead it just shows the text from the homepage!

    Here is my template code (excuse the mess).

    <!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">
    <head>
    
      <meta content="text/html; charset=utf-8" http-equiv="content-type" />
    	<base href="[(site_url)]"/>
      <title> [*pagetitle*] | [(site_name)]</title>
    
    <link rel="stylesheet" href="[(base_url)]assets/templates/empmentor/css/layout.css" type="text/css" />
    </head>
    
    <body>
    
    <div id="topshadow">
    </div>
    
    <div id="container">
    <div id="header">
    <a id="pageTop" title="Top of Page"></a>
    {{headercontact}}
    </div>
    
    <div id="infobar">
    <div id="bread">
    [!Breadcrumbs? &maxCrumbs=`2` &showCrumbsAtHome=`0`!]
    </div>
    <div class="search">
    [[HyperFlexSearchForm? &FSF_landing=`8` &FSF_showResults=`0`]]
    </div>
    </div>
    
    <div class="menucontainer">
    <ul class="menu">
    <li class="current"><a href="http://www.employermentor.co.uk/" title="Employer Mentoring homepage" >Home</a></li>
    <li class="current"><a href="http://www.employermentor.co.uk/[~8~]" title="Contact Us" >Contact Us</a></li>
    <li class="current"><a href="http://www.employermentor.co.uk/[~9~]" title="RSS Feeds" >RSS feeds</a></li>
    </ul>
    </div>
    
    <div id="contentcontainer">
    
    <div id="center">
    <div class="padding">
    [*content*]
    </div>
    </div>
    <div id="leftRail">
    [!Wayfinder?startId=`0` &hereClass=`maincurrent` &level=`1` &outerClass=`mainmenu` &hideSubMenus=`true`!]
    </div>
    
    </div>
    
    <div id="rightRail">
    [!chunkListParser?chunks=`[*latestcontent*]` &wrapperdiv=`sidebar`!]
    <div class="sidebarbottom">
    </div>
    
    </div>
    </div>
    
    <div id="footer">
    {{footer}}
    </div>
    </div>
    
    <div id="footershadow">
    </div>
    
    </body>
    </html>
    
      • 27302
      • 154 Posts
      To follow this up, the content of the pages shows properly if I go to the Preview Document option, or if I click on Preview in the document editor. But the content will not show if I preview the website as a whole and click on the menu items.

      I’m at a complete loss as I am using this same template for another website that works perfectly!
        • 27302
        • 154 Posts
        Sorted now!

        Like a fool I forgot the .htaccess file!!