We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

channel entries not working

How Do I?

pshudgins's avatar
pshudgins
7 posts
10 years ago
pshudgins's avatar pshudgins

Hi there… apologies for the code dump below, but I’m stumped. Code below works fine on old version of EE. I’m now in the process of upgrading and it’s not working, so was hoping someone might know what the issue is. Lots of channel entries on the page, some dynamic and some not… so maybe that has something to do with it? I’m sure there’s some sort or parameter that’s changed in the newer version, but can’t nail it down.

Old site, working: http://www.powelltate.com/what-we-do/capabilities/category/public_affairs/

New site, not working correctly: http://eepowelltate.build.webershandwick.com/what-we-do/capabilities/category/public_affairs

Code:

<body>
<div id="wrappersubs">
<div id="container">
{embed="site/header" loc="whatwedo"}

<div id="content">
 <div id="sidenav">

 <h  ><a href="http://{path=/what-we-do/}" title="What We Do">What We Do</a></h2>

  <a href="#">" data-openimage="/images/ptimages/site_design/collapse.gif" data-closedimage="/images/ptimages/site_design/expand.gif"]/images/ptimages/site_design/expand.gif</a> <a href="#">" title="Capabilities" id="capabilities-toggle"]Capabilities</a>
 <div id="capabilities" > <ul>
{exp:channel:entries channel="capabilities" dynamic="off" orderby="capesort" sort="asc"}  
   <li ><a href="http://{title_permalink=what-we-do/capabilities/category}class=on">{capability}</a></li>
{/exp:channel:entries}  
  </ul>
</div>
  <a href="#">" data-openimage="/images/ptimages/site_design/collapse.gif" data-closedimage="/images/ptimages/site_design/expand.gif"]/images/ptimages/site_design/expand.gif</a> <a href="#">" title="Issues"  id="issues-toggle"]Issues</a>
 <div id="issues" > <ul>
{exp:channel:entries channel="issues" dynamic="off" orderby="title" sort="asc"}  
   <li ><a href="http://{title_permalink=what-we-do/issues/category}class=on">{issue}</a></li>
{/exp:channel:entries}  
  </ul></div>


 </div>

 <div id="right_wide_col">
  
<div id="showroom">
   
/images/ptimages/site_design/WhatWeDo.jpg



</div>

<div id="bottom_content">

<div class="mod_wrapper">


<div class="wide_moduleissues">

{exp:channel:entries channel="capabilities"}  
<div class="wm_txt">
<h2>{capability}</h2>

{capability_overview}

</div><!-- end wm_text -->
{/exp:channel:entries}  


{exp:channel:entries channel="capabilities"}
{if capesshowinsights=="Yes"}

<h   font-size:14px; font-style:italic;">Related Insights:</h2>

<ul  padding-left:5px;">
<div class="wm_txt">
{/if}
{/exp:channel:entries}

{exp:channel:entries channel="ptinsights" orderby="entry_date" sort="desc"}
<li>{entry_date format="%m.%d.%y"} – <a href="http://{title_permalink=insights/index}">{title}</a></li>
{/exp:channel:entries}


{exp:channel:entries channel="capabilities"}
{if capesshowinsights=="Yes"}

</div><!-- end wm_text -->
</ul>

{/if}
{/exp:channel:entries}




</div><!-- end wide_moduleissues-->



<div class="wide_moduleissuesright">

{exp:channel:entries channel="ourpeople" orderby="empsort|employeelastname" sort="asc|asc" } 

{if count==1}KEY STAFF:{/if}

<div  margin-bottom:8px;">
 <a href="http://{title_permalink=about-us/our-people/index}">{employeethumb}</a>

<a href="http://{title_permalink=about-us/our-people/index}">{employeefirstname} {employeelastname}</a>

<span>{employeetitle}</span>

</div>

{/exp:channel:entries}  


{exp:channel:entries channel="capabilities"}
{if capesshowwork=="Yes"}

RELATED WORK:

<ul  margin-left:5px; line-height:14px; margin-top:0px; padding-top:0px;">

{/if}
{/exp:channel:entries}

{exp:channel:entries channel="ourwork" orderby="client" sort="asc"} 
<li  margin-bottom:2px; padding-bottom:0px;"><a href="http://{title_permalink=our-work/detail}">{Client}</a></li> 
{/exp:channel:entries}  

{exp:channel:entries channel="capabilities"}
{if capesshowwork=="Yes"}

</ul>

{/if}
{/exp:channel:entries}

</div><!-- end wide_moduleissuesright-->




</div><!-- end mod_wrapper--> 



</div>


</div>

</div><!-- content -->



</div><!-- container -->
<div class="clearfootersubs"></div>
</div><!-- wrapper-->
{embed="site/footersubs"}

</body>
       
deswork's avatar
deswork
122 posts
10 years ago
deswork's avatar deswork

You have

dynamic="off"

the docs say it shold be

dynamic="no"

https://ellislab.com/expressionengine/user-guide/channel/channel_entries.html#dynamic

Hope it helps.

       
pshudgins's avatar
pshudgins
7 posts
10 years ago
pshudgins's avatar pshudgins

Thanks for the reply, but that didn’t make a difference. The page doesn’t produce some key code, like the opening “ul” and the “h2”… just not sure why. Works fine on the old EE.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.