ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Embeds aren't embedding

April 04, 2008 11:11am

Subscribe [3]
  • #1 / Apr 04, 2008 11:11am

    mcneasep

    21 posts

    Hello,

    I’ve got my site setup with a couple different embeds used for the header, nav, and footer. None of these are rendering when you load up a template. If you view the source of the rendered page, everywhere there should be filled content from one of the embeds, it’s just blank, almost as though EE came across that tag and just ignored it. If you view the individual templates for each embed, their code is rendering… so it would seem to me it’s a problem with the way the embed tags themselves are rendered. Does anyone have any idea what might be causing this?

    Thanks

  • #2 / Apr 04, 2008 11:16am

    Ingmar

    29245 posts

    You really need to post some code, I am afraid.

  • #3 / Apr 04, 2008 11:21am

    mcneasep

    21 posts

    This doesn’t work.

    {embed="learning_center/header_index"}
    {!-- ###################################### --}
    {!--                END HEADER              --}
    {!-- ###################################### --}  
    
    {!-- ###################################### --}
    {!--                BEGIN INDEX              --}
    {!-- ###################################### --}  
    
    
    {exp:replace find="index.php/" replace=""}
            <div id="bottomBoxes">
                <div id="leftBox">
                {exp:weblog:entries weblog="index_bottom" entry_id="228"}
                    <h3>Featured Product of the Month: {box_header}</h3>
    <p>                <div class="boxIcon"> <br />
                    <a href="#lightbox1" rel="lightbox1" class="lbOn">{box_image}</a></div><br />
                    {box_text} <a href="http://{more_link}">Contact Us.</a><br />
                    <div class="clearit"></div><br />
                {/exp:weblog:entries}<br />
                   </div><br />
                <div id="rightBox"><br />
                {exp:weblog:entries weblog="index_bottom" entry_id="127"}<br />
                    </p><h3>{box_header}</h3>
    <p>                <a href="http://{more_link2}">{box_image}</a><br />
                    {box_text} <a href="http://{more_link}">more.</a><br />
                {/exp:weblog:entries}<br />
                </div><br />
            </div><br />
        </div><br />
    </div><br />
    </div><br />
    </div><br />
    {/exp:replace}<br />
    {!-- Lightbox code for Flash file & form --}<br />
                <div id="lightbox1" class="leightbox"><br />
                <a href="#" rel="deactivate" class="lbAction">/ee/themes/site_themes/learning_center/images/butn_close.gif</a><br />
                    <br />
                        Generate qualified leads by giving your listings maximum exposure in your local city or zip code. Place your <br />
                        listings in front of over 3 million active homebuyers per month with virtual, audio and video tours!  To <br />
                        find out more, <a href="/contact_featured_product/" title="Request More Information">request more information</a>.  <br />
                    <br />
                    <div id="flashContent"><strong>Loading…</strong></div><br />
                        <br />
                        <br />
                        var so = new SWFObject("/ee/images/uploads/portal_demo.swf", "mymovie", "400", "485", "8", "#FFFFFF");<br />
                            so.addParam("wmode" , "transparent");<br />
                            so.useExpressInstall('/ee/images/uploads/expressinstall.swf');<br />
                            so.addParam("quality", "high");<br />
                        so.write("flashContent");<br />
                            <br />
                </div><br />
    {!-- ###################################### --}<br />
    {!--                 END INDEX              --}<br />
    {!-- ###################################### --}   <br />
                <br />
    {!-- ###################################### --}<br />
    {!--                BEGIN FOOTER             --}<br />
    {!-- ###################################### --}  <br />
    {embed="learning_center/footer"}

  • #4 / Apr 04, 2008 11:22am

    mcneasep

    21 posts

    But this does. (too long for one post)

    <!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="verify-v1" content="NIggqxLl/VFf0PnlstQVo8Se8ueFU55CG4Ux9j06d18=" />
    <title>Agent Advantage Learning Center</title>
    <link rel="stylesheet" href="/ee/themes/site_themes/learning_center/styles/main.css" />
    <link rel="stylesheet" type="text/css" href="/ee/startnew/plugins/share_this.css" />
    
    
    
    </head>
    <body>
    <div id="wrapper">
        <div id="header">
            <div id="headerLogo">
                {exp:search:simple_form weblog="aablog|article|copyright|index_bottom|index_content|privacy|terms|testimonials|video" result_page="learning_center/results_test" results="10" search_in="entries"}
                    <div id="searchBar">
                        <input type="text" name="keywords" id="searchBox" value="" size="18" maxlength="100" />
                        <input alt="Spam me" name="Send" class="send-btn" type="submit" value="Search" id="Send" src="/ee/themes/site_themes/learning_center/images/icon_search.gif" />
                        <input alt="Search" name="Send" class="send-btn" type="image" id="Send" src="/ee/themes/site_themes/learning_center/images/icon_search.gif" tabindex="5" />
                        {!-- <input type="submit" value="submit" id="searchButton" src="/ee/themes/site_themes/learning_center/icon_search.gif" /> --}
                    </div>
                {/exp:search:simple_form}
                <a href="/">{my_template_group_path}/images/clr.gif</a>
            </div>
        </div>
    
        <div id="container">
    <div id="nav">
        <ul>
            {exp:weblog:entries weblog="index_nav" entryid="7" dynamic="off"}
    {exp:replace find="index.php/" replace=""}
            <li {if '{embed:loc}' == 'button1'}id="navCurrent"{/if}>{button_1}</li>
            <li {if '{embed:loc}' == 'button2'}id="navCurrent"{/if}>{button_2}</li>
            <li {if '{embed:loc}' == 'button3'}id="navCurrent"{/if}>{button_3}</li>
            <li {if '{embed:loc}' == 'button4'}id="navCurrent"{/if}>{button_4}</li>
            <li {if '{embed:loc}' == 'button5'}id="navCurrent"{/if}>{button_5}</li>
            <li {if '{embed:loc}' == 'button6'}id="navCurrent"{/if}>{button_6}</li>
            <li {if '{embed:loc}' == 'button7'}id="navCurrent"{/if}>{button_7}</li>
            <li {if '{embed:loc}' == 'button8'}id="navCurrent"{/if}>{button_8}</li>
    {/exp:replace}
            {/exp:weblog:entries}
        </ul>
    </div>
           <div id="contentwellMain">
              <div id="topContent">
                
                    <a href="/aablog"><div id="stickyNote"></div></a>
    Welcome to the AgentAdvantage Learning Center! Designed with the next-generation real estate agent in mind, the Learning Center is not only a library of technical help and documentation for your website, but also a resource to help you grow your real estate business.
    
    
    Browse through our product how-to’s, read up on the latest homebuying industry marketing trends, watch an agent profile or video tutorial, and sign up for one of our free, live webinar training sessions—all right here!
    
                <div class="clearit"></div>
            </div>
    
    {!-- ###################################### --}
    {!--                END HEADER              --}
    {!-- ###################################### --}  
    
    {!-- ###################################### --}
    {!--                BEGIN INDEX              --}
    {!-- ###################################### --}
  • #5 / Apr 04, 2008 11:23am

    mcneasep

    21 posts

    {exp:replace find="index.php/" replace=""}
            <div id="bottomBoxes">
                <div id="leftBox">
                {exp:weblog:entries weblog="index_bottom" entry_id="228" dynamic="off"}
                    <h3>Featured Product of the Month: {box_header}</h3>
    <p>                <div class="boxIcon"> <br />
                    <a href="#lightbox1" rel="lightbox1" class="lbOn">{box_image}</a></div><br />
                    {box_text} <a href="http://{more_link}">Contact Us.</a><br />
                    <div class="clearit"></div><br />
                {/exp:weblog:entries}<br />
                   </div><br />
                <div id="rightBox"><br />
                {exp:weblog:entries weblog="index_bottom" entry_id="127" dynamic="off"}<br />
                    </p><h3>{box_header}</h3>
    <p>                <a href="http://{more_link2}">{box_image}</a><br />
                    {box_text} <a href="http://{more_link}">more.</a><br />
                {/exp:weblog:entries}<br />
                </div><br />
            </div><br />
        </div><br />
    </div><br />
    </div><br />
    </div><br />
    {/exp:replace}<br />
    {!-- Lightbox code for Flash file & form --}<br />
                <div id="lightbox1" class="leightbox"><br />
                <a href="#" rel="deactivate" class="lbAction">/ee/themes/site_themes/learning_center/images/butn_close.gif</a><br />
                    <br />
                        Generate qualified leads by giving your listings maximum exposure in your local city or zip code. Place your <br />
                        listings in front of over 3 million active homebuyers per month with virtual, audio and video tours!  To <br />
                        find out more, <a href="/contact_featured_product/" title="Request More Information">request more information</a>.  <br />
                    <br />
                    <div id="flashContent"><strong>Loading…</strong></div><br />
                        <br />
                        <br />
                        var so = new SWFObject("/ee/images/uploads/portal_demo.swf", "mymovie", "400", "485", "8", "#FFFFFF");<br />
                            so.addParam("wmode" , "transparent");<br />
                            so.useExpressInstall('/ee/images/uploads/expressinstall.swf');<br />
                            so.addParam("quality", "high");<br />
                        so.write("flashContent");<br />
                            <br />
                </div><br />
    {!-- ###################################### --}<br />
    {!--                 END INDEX              --}<br />
    {!-- ###################################### --}   <br />
                <br />
    {!-- ###################################### --}<br />
    {!--                BEGIN FOOTER             --}<br />
    {!-- ###################################### --}      </p>
    
    <p>        </div><br />
              <div class="clearit"></div><br />
            </div><br />
        </div><br />
    </div></p>
    
    <p><a href="/learning_center/copyright/">Copyright © 2008 Dominion Enterprises. All rights reserved.</a> | <a href="/learning_center/terms/">Terms & Conditions</a> | <a href="/learning_center/privacy/">Privacy Policy</a> | <a href="/learning_center/contact_info">Contact Us</a><br />
     <br />
    </body><br />
    </html>

  • #6 / Apr 04, 2008 11:25am

    Ingmar

    29245 posts

    The example in the docs doesn’t use quotation marks:

    {embed=learning_center/header_index}

    Oh, and I trust there is both a template_group learning_center and a template named header_index?

  • #7 / Apr 04, 2008 11:25am

    Ingmar

    29245 posts

    Never mind, this one does. Still, try it.

  • #8 / Apr 04, 2008 11:31am

    mcneasep

    21 posts

    Figured it out.

    The template group name was the problem. Someone must have changed it. THANKS! Sometimes I guess you just need someone on the outside to ask you those question.

    Thanks again!

  • #9 / Apr 04, 2008 11:35am

    Sue Crocker

    26054 posts

    Thanks for the assist, Ingmar. Closing the thread.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases