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.

Entries associated with same category as current page/article

March 16, 2008 10:07am

Subscribe [2]
  • #1 / Mar 16, 2008 10:07am

    gdpfunding

    12 posts

    Is it possible to get the category ID or category name of the current page and then list other entry titles associated with the same category?

    This is so I can change an article list according to whatever category is currently being viewed.


    Thanks

  • #2 / Mar 16, 2008 10:28am

    Bruce2005

    536 posts

  • #3 / Mar 16, 2008 11:45am

    gdpfunding

    12 posts

    Brilliant!  Thanks for your help.

    By default it seems to literally list all OTHER entries.  Is there a way to retain the current entry title also?

    It’s no real problem if it can’t be done.

    Thanks again

  • #4 / Mar 16, 2008 5:55pm

    Bruce2005

    536 posts

    EE can do anything 😊
    As one is on the page, I assume you wouldn’t want it as a link,
    Or even at the top?
    Many ways to arrive at the same place.
    One is to use weblog:entries tag above the list, but below ul.

    {exp:weblog:entries limit="1" weblog="{my_weblog}" disable="member_data|trackbacks"}
    <li><b>{title}</b></li>
    {/exp:weblog:entries}

    Otherwise pass the category id on the weblog:entries tag instead of related_categories..

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

ExpressionEngine News!

#eecms, #events, #releases