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.

Embedded Template not Loading when Containing Template is Loaded via Pages URI

September 24, 2013 11:25am

Subscribe [1]
  • #1 / Sep 24, 2013 11:25am

    The code below works perfectly when accessed via the template directly, but if I access it from a channel entry’s PAGES URI then the {embed="Work/WorkClientList"} doesn’t load.  The other embedded templates DO load, though.  Any thoughts?

    {exp:channel:entries channel="work" limit="1"}
    
    {embed="StaticElements/Header" css="Work" javascript="Work" slider="false" page_title="work" title_tag="{work_title_tag}" meta_description="{work_meta_description}"}
    
    <div class="page_content">
     <h1>{title}</h1>
     
     <ul id="medium">
      <li class="selected">Everything</li>
      <li>Print</li>
      <li>Interactive</li>
      <li>Identity</li>
      <li>Fundraising</li>
      <li>Video</li>
      <li>Other</li>
     </ul>
     
     <span>Client</span> or <span>Industry</span>
     
     <ul id="clients">
      <li class="selected">All</li>
      {embed="Work/WorkClientList"}
     </ul>
    </div>
    
    {embed="StaticElements/Footer"}
    
    {/exp:channel:entries}

    Contents of Work/WorkClientList (though I had changed the contents to just plain text for debugging but that didn’t help):

    {exp:channel:entries channel="clients" search:client_show_in_list="=yes"}
    <li>{client_name}</li>
    {/exp:channel:entries}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases