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 of current entry as parameter in entries tag

July 01, 2008 10:53pm

Subscribe [2]
  • #1 / Jul 01, 2008 10:53pm

    jducka1

    12 posts

    I have a template displaying a single entry, and need to display a list of all of the entries in the same category as the current entry.

    Here’s what I have:

    {exp:weblog:entries weblog="default_site" dynamic="off"}{title}{/exp:weblog:entries}

    This does what I want except that it displays entries from ALL categories in my weblog.  I need for it to display entries only from the current category.  Since I use the same template for multiple categories, I need to get the category dynamically.

    Any ideas for how can I get the category of the current entry so that I can filter the entries tag so that only entries that match the current category display?

  • #2 / Jul 02, 2008 8:50am

    Ingmar

    29245 posts

    I have a template displaying a single entry, and need to display a list of all of the entries in the same category as the current entry.

    Take a look at related category mode.

  • #3 / Jul 02, 2008 11:05am

    jducka1

    12 posts

    Forgot to mention I need it to show the current entry as well, and have the entries list in the same order.  I’m using it to act like a menu.  I have seen other posts requesting help with same, but no solution that I can get to work.

  • #4 / Jul 02, 2008 4:14pm

    Ingmar

    29245 posts

    If you need that level of control, you will probably (have to) use a raw SQL query.

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

ExpressionEngine News!

#eecms, #events, #releases