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.

Category page not displaying as expected...

January 12, 2011 4:39pm

Subscribe [2]
  • #1 / Jan 12, 2011 4:39pm

    bmschaaf

    171 posts

    This seems to be a popular topic today, but as his post is not resolved I thought I would start my own…

    I set my category trigger word to “expertise”, but for some reason this works:

    http://ae.qltdclient.com/cases/expertise/expertise/antitrust_competition

    But this, doesn’t…

    http://ae.qltdclient.com/cases/expertise/antitrust_competition

    This is the code from my template cases/expertise- I stripped out the bit that styles the page.

    {exp:channel:category_heading}
    
    <h2>{category_name}</h2>
    
    <p>{/exp:channel:category_heading}<br />
            {exp:channel:entries channel="cases" limit="5" status="Featured|Open" disable="member_data" paginate="bottom"}</p>
    
    <p>            <article><br />
                    </p><h2><a href="http://{title_permalink=cases/case}">{title}</a> - {categories}{category_name}{/categories}</h2>
    <p>                {if cases_subtitle}</p><h6>{cases_subtitle}</h6><p>{/if}<br />
                    {if cases_court}</p><h5>{cases_court}</h5><p>{/if}<br />
                    <br />
                    {exp:trunchtml chars="275" inline="…<a href='{title_permalink=cases/case}'>Read More</a>"}<br />
                        {cases_summary}<br />
                    {/exp:trunchtml}</p>
    
    <p>            </article></p>
    
    <p><br />
    {if no_results}<br />
    <article></p><h2>No Cases</h2>
    <p>No cases have been assigned to this category of expertise.<br />
    </article><br />
    {/if}<br />
                {paginate}<br />
                    Page {current_page} of {total_pages} {pagination_links}<br />
                {/paginate}<br />
            {/exp:channel:entries}<br />
        </div><!-- /end primary --><br />
        <aside id="sidebar"><br />
            <nav></p><h2>Cases by Core Expertise</h2>
    <p>{exp:channel:categories channel="cases" id="by_expertise"}</p>
    
    <p><a href="/cases/expertise/expertise/{category_url_title}">{category_name}</a></p>
    
    <p>{/exp:channel:categories}<br />
            </nav><br />
        </aside><br />
            </div>


    What am I doing wrong?  Thanks!

    Maybe I cannot have a template with the same name as my trigger word?

    I am running EE 2.1.1, build 20101020.

  • #2 / Jan 12, 2011 4:58pm

    bmschaaf

    171 posts

    I figured out my issue.

    As I speculated, the issue was my trigger word and template name share the same name.

    I was confusing EE, and for that I apologize 😉

  • #3 / Jan 13, 2011 6:57am

    Sue Crocker

    26054 posts

    Hi, Ben. Glad you figured it out. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases