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.

Get {title} of other entries with the same category of the displayed entry

March 19, 2012 12:15am

Subscribe [4]
  • #1 / Mar 19, 2012 12:15am

    fxidesigns

    131 posts

    Ok lets see if I can explain what I am looking for.

    When viewing a specific entry. I want to display a list of the TITLES of all the entries within the same category of the displayed entry.

    So lets say I have 6 entries….
    Entry 1
    Entry 2
    Entry 3
    Entry 4
    Entry 5
    Entry 6

    And Entry 1, 3 & 5 belong to Category A
    And Entry 2 & 6 belongs to Category B
    And Entry 4 belongs to Category C

    So when you are viewing Entry 1… I want to display a list of all entries titles that are in its category (category A)... so you would see
    Entry 1
    Entry 3
    Entry 5

    And if you were viewing Entry 2, a list off the following entry titles would be displayed
    Entry 2
    Entry 6

    I tried using the Entry Categories plugin but I can’t seem to pass its result into the {exp:channels} tag.

    Any ideas would be greatly appreciated.

    Joe

  • #2 / Mar 19, 2012 7:39am

    Boyink!

    5011 posts

  • #3 / Mar 19, 2012 11:22am

    fxidesigns

    131 posts

    Thats great.  Thanks.

    Now I am guessing you can’t use this with the category_group= parameter like this…

    {exp:channel:entries  related_categories_mode="yes" category_group="4&5"}  
    {title} {entry_id}
    
    {/exp:channel:entries}
  • #4 / Mar 19, 2012 11:33am

    Boyink!

    5011 posts

    Why guess?  Review the docs and give it a try..😉

  • #5 / Mar 19, 2012 11:36am

    fxidesigns

    131 posts

    Yea I did try… it doesn’t seem to work… it seems it 4&5 works the same way as 4|5

  • #6 / Mar 19, 2012 5:16pm

    Shane Eckert

    7174 posts

    Hey fxidesigns,

    Thank you for your question. Thanks to Mike as well for the assist.

    The documentation does not indicate that you can list more than one category at a time.

    Is there anything else I can help with?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases