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.

Help with Limiting Pages in Channel Entries Module

September 14, 2012 6:18pm

Subscribe [2]
  • #1 / Sep 14, 2012 6:18pm

    Cowdrey

    5 posts

    Hi there,

    I currently have a Structure that looks like the following:

    Artists
      Band Name
          -Overview
          -About
          -Tour
          -Music

    On the “Artists” index page, it’s pulling the artists header image and band name. Click on either one of those sends you to the Band>Overview page.

    What my current problem is now, is that on the Artists page, it’s trying to pull an image and band name from every single page (ex. Overview, About, Tour)

    How do I limit it to just pull from the “Band Name” page?

    Currently, my template looks like this:

    <div class="current-bands">
            <h1 class="current">Our Current Artists</h1>
     {exp:channel:entries channel="artists" dynamic="no"}
     <ul class="bands">
       <li>
      {exp:channel_images:images entry_id="{entry_id}"}
             <a href="http://{page_url}/overview">{image:url:medium}</a>
               {/exp:channel_images:images}
      
         {artist_info}
                
      <h1 class="band-name"><a href="http://{page_url}/overview">{artist_name}</a></h1>
        
         <h2 class="place">{artist_city}</h2>
         {/artist_info}
              </li>
     
     </ul>
            {/exp:channel:entries}
          </div>

    Thanks for your help in advance!

  • #2 / Sep 16, 2012 12:10pm

    Kurt Deutscher

    827 posts

    Hi Cowdrey,

    Artists => Channel
      Band Name => Category
        -Overview => Sub Category
        -About => Sub Category
        -Tour => Sub Category
        -Music => Sub Category

    If that’s how you are separating out the pages, then one possibility is that you’ll want to change this setting:

    Admin > Channel Admin > Global Channel Preferences > Auto-Assign Category Parents (yes)

    By default EE has that set to (yes) and you may need to set it to (no) and then remove the parent category from each of your entries category-tab settings.

    This is one of those settings that works well in a blog, but not so much in a CMS set up of an EE channel.

  • #3 / Sep 17, 2012 4:03pm

    Kevin Smith

    4784 posts

    Hi Cowdrey,

    Sounds to me like the problem likely stems from your usage of this parameter:

    dynamic="no"

    Do the URLs for each band contain the entry’s URL title? If so, you’ll want to remove that parameter since it tells EE to ignore any information it might receive from the URI string. Does that help?

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

ExpressionEngine News!

#eecms, #events, #releases