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 - Are you able to nest entries w/i entries?

How Do I?

andrew.reff's avatar
andrew.reff
26 posts
8 years ago
andrew.reff's avatar andrew.reff

I am trying to figure out and also do the best practice here, but running into some speed bumps and roadblocks when trying to figure this out.

Essentially what I am trying to do is; 1) Render a list of my categories for my “Support” channel, which is my navigation, and the part I DO have working.
2) Then the second part is essentially a listing of all the support entries, however they are grouped by the category they belong in. I’ve got this partially working … I have the first level of the category groups working, however I can get the sub list within them to render;

{embed="site/header"}   
   <section class="section" id="support">
    <div class="container">
     <div class="row">
      <div class="support">
       <ul class="support-categories">
        {exp:channel:categories channel="Support" show_empty="no"}
        <li><a href="#{category_name}">{category_name}</a></li>
        {/exp:channel:categories}        
       </ul>
       <div class="support-items">
        <!-- -->
        {exp:channel:categories channel="Support" dynamic="no" style="linear" show_empty="no"}
        <ul id="{category_name}" class="support-group">
         <li class="support-title">
          <h2>{category_name}</h2>
         </li>
         <!-- REPEATABLE ELEMENT -->
         <li>
          <a href="#0class=support-trigger">{title}</a>
          <div class="support-content">
           {support_body}
          </div>
         </li>
         <!-- REPEATABLE ELEMENT -->
        </ul>
        {/exp:channel:categories}
        <!-- -->
       </div>
       <a href="#0" class="cd-close-panel">Close</a>
      </div>
     </div>
    </div>
   </section>
   {embed="site/footer"}

Any help is greatly appreciated! Thank you!

       

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.