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.

Parent Relationship and Channel Category Archive

January 23, 2014 10:19am

Subscribe [1]
  • #1 / Jan 23, 2014 10:19am

    Jeremy S.

    353 posts

    I am still not 100% familiar with the newer relationships method added in 2.6 and I am wondering if I can get the Channel Category Archive Tag {exp:channel:category_archive} working with a parent relationship. It’s for the table of contents of a monthly magazine, and I want the category heading and the entries listed below. The parent relationship being the issue number.

    Something like:

    Category
    Article 1
    Article 2

    Category
    Article 3
    Article 4

    I’ve been playing with various combinations and no luck:

    {exp:channel:entries channel="print_editions" disable="pagination" limit="1"}
    
      {exp:channel:category_archive channel="articles" style="linear" show_empty="no" status="not closed"}
        {parents}
          <h2>{parents:categories}{category_name}{/parents:categories}</h2>
    <p>       <ul><br />
            {parents:entry_titles}<br />
             <li>{parents:title}<li>    <br />
            {/parents:entry_titles} <br />
           </ul><br />
        {/parents}<br />
      {/exp:channel:category_archive}</p>
    
    <p>{/exp:channel:entries}

  • #2 / Jan 27, 2014 12:09pm

    Jeremy S.

    353 posts

    If anyone has a solution, feel free to also post it on the StackExchange site and collect the +50 rep bounty I put on the question:

    http://expressionengine.stackexchange.com/questions/18658/parent-relationship-and-channel-category-archive

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

ExpressionEngine News!

#eecms, #events, #releases