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
    Quote from: BobRay at Aug 14, 2011, 06:32 PM

    What does the [[wrapcontent . . .]] tag in your template(s) look like?


      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
      • 24665
      • 14 Posts
      The weird thing is that there is no wrapcontent tag in the template. Only a buffer include to include a PHP page. huh Other pages that are included in the same way work without any problem.
        • 3749
        • 24,544 Posts
        Post the "include" code, and the content of that included page.
          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
          • 32316
          • 387 Posts
          Did you clear the cache? Perhaps even cleared the cache manually as well?
            • 24665
            • 14 Posts
            I was wrong. There is a wrapcontent tag in the template:

            [[!WrapContent? &prefix=`<div id="page_effect" style="display:none;">
            	<div id="main_content">
                        <div id="sometext">
                            <h2>[[*pagetitle]]</h2>` &content=`[[*content:limit=`100000`]]` &suffix=`
                        </div>
                    </div>
            </div>
            	<div id="horline"></div>
            	<div id="footer">
                        <p>Copyright - [[Date]]</p>
                       [[*login]]
                    </div>`]]


            The include code is:

            [[!buffering_include? &file=`/home/blablabla/domains/domain.net/public_html/users/userdb.php`]]
              • 3749
              • 24,544 Posts
              I have to admit that the more I look at this code, the more confused I get. Did you inherit this site, or is this your code?

              The developer seems to have moved the most important parts of the template into a snippet property and then inexplicably set the whole div to display:none. Then, the content of a TV determines if the normal template stuff appears, or just the resource’s content field. There must be a good reason for the way this is coded, but I can’t for the life of me imagine what it is.

              Maybe someone else can make more sense of it than I can.

              Normally, you’d use an empty template if you didn’t want a template and you’d put your style rules in a CSS file.

              I would say your next task is to check the TV referred to in the snippet code and look at how it’s set for various resources to try and make sense out of which ones (if any) have the empty template.
                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