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.

dynamic categories on details page

February 16, 2012 11:50am

Subscribe [2]
  • #1 / Feb 16, 2012 11:50am

    Eastwood Design

    605 posts

    I have a channel for events with 3 categories.  I want to use as few templates as possible to display the events and provide a link to view the details of the event.

    When I am viewing category 6 details template I want to display a list of other events within the same category 6.

    Here is the URL of my details page:
    http://domain.com/index.php/Events/detail/C6/title-of-event

    On my details page I am using the following for my list:

    {exp:channel:entries channel="events" dynamic="no" limit="25" show_expired="no" show_future_entries="yes" category="{segment_2}"}
    
    <div class="members_title"><a href="http://{url_title_path=Events/detail}">{title}</a></div>
    {event_brief_one_liner}
    
     
    
    {if no_results}Currently no News or Events to display{/if}
    
    {/exp:channel:entries}

    The above is not showing any results even though there are other entries within the same category.

    On another template
    http://domain.com/index.php/Events/C6/

    is displaying all the events in Category 6 just fine,

     

     

  • #2 / Feb 16, 2012 2:00pm

    Boyink!

    5011 posts

  • #3 / Feb 17, 2012 2:31pm

    Eastwood Design

    605 posts

    wonderful.. works like a charm thanks Boyink

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

ExpressionEngine News!

#eecms, #events, #releases