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.

Can't display Category Name and shows ALL entries in all categories

December 16, 2010 11:21pm

Subscribe [2]
  • #1 / Dec 16, 2010 11:21pm

    fensterbaby

    289 posts

    Okay, I checked the documentation and looked in here but an spinning my wheels.

    Here is the news index page:

    http://www.bwtowncountry.com/bw/news

    Clicking one of the first three categories should take you to the category page. It does but the category_name doesn’t display and it is showing all entries not just that category.

    I don’t get how to deal with categories I guess.

    Here is the code for the category template.

    <div id="centerRow">
    
    {embed="includes/sidebar"}
    
    <!--Start Content A -->
    
    
    <div class="content A">
    
      <!--Start Titlebar -->
      <div id="contentTitleBar">
        <div id="pageTitle">{exp:channel:categories limit="1" show_empty="no"}
          <h1>{category_name}</h1>{/exp:channel:categories}</div></div>
      <!--End Titlebar -->
    
      <div class="contentTop"></div>
      <div class="content B sitepage">
    
    
    {exp:channel:entries channel="news" limit="6" }
    
    <div class="news_sub_article">{title}    {date}
    
     {article_excerpt}
    
      <span class="article_arrows">»</span> <a href="#">Read Article</a>
      </div>
    <div class="news_sub_article">{title}    {date}
    
     {article_excerpt}
    
      <span class="article_arrows">»</span> <a href="#">Read Article</a>
      </div>
    <div class="clearfloat"></div>
    
      {/exp:channel:entries}
      </div> 
      
      </div>  
      <div class="clearleft"></div>
    
        <div class="contentBott"> </div>
    </div>

    I tried using the {exp:channel:category_heading} tag and that didn’t work either.

    help

    thanks

  • #2 / Dec 16, 2010 11:55pm

    fensterbaby

    289 posts

    Okay, the problem was that…

    The Category URL Indicator CAN NOT be the name of a template group or a template.

    That’s one more problem fixed.

    now…

  • #3 / Dec 17, 2010 11:31am

    Ingmar

    29245 posts

    Very glad to see you solved that 😊 Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases