We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29332
    • 80 Posts
    I’m trying to call a form on a page of mine, but the form doesn’t display, the snippet call does instead. Any suggestions?
    Snippet call:
    [!eForm? &formid=`newEstimate` &subject=`New Estimate` &tpl=`EstimateForm` &report=`EstimateFormReport` to =`[email protected]`!]

      Teaching myself MODx
      • 3749
      • 24,544 Posts
      Try turning off Rich Text for the document and see if TinyMCE is "entifying" the tokens in the snippet 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
        • 29332
        • 80 Posts
        Ok, I tried that. It’s still displaying the snippet code.
          Teaching myself MODx
          • 26931
          • 2,314 Posts
          try changingto
            • 29332
            • 80 Posts
            I thought for sure that was it, but it still displays the snippet code. I also removed that part all together, and still no go.
            I did notice that if I used the Minimal Template, the form displayed. I’m not sure what is in my template that would cause my snippet code to show. Here’s my template:
            [!template_header!]
            
            
                        <ul class="leftNavItem">
                            <li><a href="index.php?id=47">Home Cleaning Services</a></li>
                                <!--<ul class="liblank">
                                    <li><span id="HideLink" onclick="showhide('checklist')"><a href="#">Check List</a></span></li>
                                    <li><span id="HideLink" onclick="showhide('faq')"><a href="#"><img src="assets/templates/value/images/faq.jpg" width="30" height="30" alt="FAQ" align="absmiddle" border="0" />Frequently Asked Questions</a></span></li>
                                    <li><span id="HideLink" onclick="showhide('supplies')"><a href="#">We Use the Best Supplies</a></span></li>
                                    <li><span id="HideLink" onclick="showhide('guarantee')"><a href="#">24-Hour Guarantee</a></span></li>
                                    <li><span id="HideLink" onclick="showhide('special')"><a href="#">Special Requests</a></span></li>
                                    <li><span id="HideLink" onclick="showhide('policies')"><a href="#">Policies</a></span></li>
                                    <li><span id="HideLink" onclick="showhide('best')"><a href="#">What makes us the best</a></span></li>
                                    <li><span id="HideLink" onclick="showhide('break')"><a href="#">Breakage and Loss Policy</a></span></li>
                                    <li><a href="index.php?id=61">Pricing</a></li>
                                </ul> -->
                                
                                <ul class="liblank">
                                    <li><a href="index.php?id=67">Value Cleaning Check List</a></li>
                                    <li><a href="index.php?id=72">Policies</a></li>
                                    <ul class="liblank">
                                    	<li><a href="index.php?id=75">Hours of Operation</a></li>
                                        <li><a href="index.php?id=76">Payment</a></li>
                                        <li><a href="index.php?id=77">Key Procedures</a></li>
                                        <li><a href="index.php?id=79">Pets</a></li>
                                    </ul>
                                    <li><a href="index.php?id=70">Value Satisfaction Guarantee</a></li>
                                    <li><a href="index.php?id=61">Pricing</a></li>
                                    <li><a href="index.php?id=68">Frequently Asked Questions</a></li>
                                </ul>
            
                            <li><a href="index.php?id=48">Commercial Cleaning Services</a></li>
                            <li><a href="index.php?id=49">Property Preservation and Foreclosure Cleanup</a></li>
                            <li><a href="index.php?id=50">Why choose Value Cleaning?</a></li>
                		</ul>
                		
            [!template_footer!]
              Teaching myself MODx
              • 29332
              • 80 Posts
              Header:
              <?php
              include("assets/templates/value/includes/template_header.inc");
              ?>


              Footer:
              <?php
              include("assets/templates/value/includes/template_footer.inc");
              ?>


              http://kittyinrose.com/value/
                Teaching myself MODx
                • 3749
                • 24,544 Posts
                Try this:

                return include("assets/templates/value/includes/template_header.inc");


                If that doesn’t work, post the contents of the header or footer .inc file.

                BTW, I’m not seeing any snippet code at that 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
                  • 29332
                  • 80 Posts
                  The problem page is her: http://kittyinrose.com/value/index.php?id=78

                  Here is the header:
                  <!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
                  <meta name="keywords" content="value, cleaning, value cleaning, home, maid, service" />
                  <meta name="description" content="House cleaning services by Value Cleaning Services L.L.C. provides cleaning service that is thorough, dependable and worry-free. Get the details of our customized home cleaning services and find a Value Cleaning Services L.L.C. near you." />
                  <title>Value Cleaning Services L.L.C.</title>
                  <script src="global.js" type="text/javascript"></script>
                  <link href="global.css" rel="stylesheet" type="text/css" />
                  <link href="content.css" rel="stylesheet" type="text/css" />
                  
                  <script src="assets/templates/value/global.js" type="text/javascript"></script>
                  <link href="assets/templates/value/global.css" rel="stylesheet" type="text/css" />
                  <link href="assets/templates/value/content.css" rel="stylesheet" type="text/css" />
                  
                  <script language="JavaScript1.2" type="text/javascript">
                  	window.parent.document.title = self.document.title;
                  		<!-- 
                  			function showhide(what,what2){
                  			what = document.getElementById(what);
                  				if (what.style.display=="none"){
                  					what.style.display="";
                  					}else{
                  					what.style.display="none"
                  					}}
                  		-->
                  	</script>
                  
                  [+googlemapheader+]
                  </head>
                  
                  <body>
                  <div class="wrapper">
                  	<div class="header">
                  		<div class="headerRight">
                  			<div id="topLinks">
                  				<div class="topLinks">
                                  <a href="index.php">Home</a> | <a href="index.php?id=51"><img src="assets/templates/value/images/giftcertificate.jpg" width="30" height="30" alt="Gift Certificate" align="absmiddle" border="0" />Gift Certificates</a> | <a href="index.php?id=52">Cleaning Tips</a> | <a href="index.php?id=70">Our Guarantee</a> | <a href="index.php?id=54">Locator</a> | <a href="index.php?id=6">Contact Us</a>
                                  </div>
                        		</div>
                        		<div style="float:right; width:720px; margin-top:27px;">
                          		<div class="searchHolder">
                             			[[Search Option]]
                          		</div>
                          		<div class="mainNavHolder">
                            			<div class="mainNavItem"> 
                                      	<h3>                     We value your business, value your time.</h3>
                                      </div>
                          		</div>
                        		</div>
                      	</div>
                      	<div class="logo"> <a href="index.php"><img src="assets/templates/value/images/logohorizontal.png" width="343" height="115" alt="Value Cleaning Services" border="0" /></a></div>
                    	</div>
                  	<div class="threeColumnHolder">
                  		<div class="contentHolder">
                      		<div class="getStarted">
                          		<!--[[Something Here]]-->
                      		</div>
                      		<div id="breadcrumbs">
                                <div class="breadcrumbs">
                                    <!--[[Bread Crumbs]]-->
                                </div>
                     			</div>
                      		<div class="contentHolderInside">
                          		<div class="rightColumn">
                              		<div class="newsletterHolder">
                                      	<!--[[Tip of the day]] -->
                                      </div>
                  <!--            		<div class="highlights">
                                      <p>
                                          Services
                                      </p>
                                      <ul>
                                          <li>Home Cleaning Services</li>
                                          <li>Commercial Cleaning Services</li>
                                          <li>Property Preservation</li>
                                          <li>Foreclosure Cleanup</li>
                                          <li>Lawn Services</li>
                                          <li>Snow Removal</li>
                                          <li>Winterization</li>
                                          <li>Debris Removal</li>
                                          <li>New Building Cleanup</li>
                                          <li>End of Tenancy</li>
                                          <li>Bereavement Cleaning</li>
                                          <li>Move In / Move Out</li>
                                          <li>Storage Unit Cleanup</li>
                                      </ul>
                  
                              		</div> -->
                                      [*services*]
                              		<div class="testimonials">
                                              <p>
                                                 <!-- Testimonial from client here. -->
                                              </p>
                              		</div>
                          		</div>
                          		<div style="float:left; width:565px;">
                                      	<h1 class="">[*title*]</h1>
                  						<p>
                  								[*#content*]
                                          </p>
                          		</div>
                      		</div>
                  		</div>
                  		<div id="leftNavHolder">
                      		<div class="subNavTitle">
                          		[*longtitle*]
                      		</div>


                  Footer:
                  <!--<ul class="leftNavItem">
                                  
                                  <li><a href="home.shtml">Home Cleaning Services</a></li>
                                  <li><a href="#">Commercial Cleaning Services</a></li>
                                  <li><a href="#">Property Preservation</a></li>
                                  <li><a href="#">Why choose Value Cleaning?</a></li>
                      		</ul> -->
                      		<div style="width:100%; float:left; margin-top:40px;">
                          		<a href="#" target="_blank"><img src="assets/templates/value/facebookicon.jpg" alt="Join Us on Facebook" style="border-style:None;border-width:0px;" /></a>
                      		</div>
                  		</div>
                  	</div>
                  	<div class="footer">
                      	<div class="footerLeft">
                          	<div class="footerLinks">
                                 <a href="index.php">Home</a> | <a href="index.php?id=51">Gift Certificates</a> | <a href="index.php?id=52">Cleaning Tips</a> | <a href="index.php?id=70">Our Guarantee</a> | <a href="index.php?id=54">Locator</a> | <a href="index.php?id=6">Contact Us</a> | <a href="#">Site Map</a><br /><br />
                  				© 2009 Value Cleaning Services L.L.C.
                          	</div>
                      	</div>
                      	<div class="footerRight">
                          	<div class="footerLinks">
                              	<br />
                  				<img src="assets/templates/value/bbb.png" alt="Better Business Bureau" style="border-width:0px;" />
                          	</div>
                      	</div>
                  	</div>
                  </div> 
                  [+googlemapfooter+]
                  </body>
                  </html>
                    Teaching myself MODx
                    • 3749
                    • 24,544 Posts
                    I think I see what’s happening. By having the snippet print the eForm tag, it’s being produced too late for the parser to operate on it.

                    Why not just put the header and footer in chunks and include them with a chunk tag? I don’t see any need for a snippet here.

                    {{header}}
                    
                    {{footer}}
                      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
                      • 29332
                      • 80 Posts
                      That did it. Now it is working.
                      Thank yoU!
                        Teaching myself MODx