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.

showing entries from a particular category

October 20, 2010 10:05am

Subscribe [3]
  • #1 / Oct 20, 2010 10:05am

    Alli

    158 posts

    I have a series of products - t-shirts, mugs hoodies etc. each with their own weblog.

    They are all linked to a parent category and a child category for example Parent category= Animals and child category=dogs

    I would like to have a section in each product page that give a ‘if you like this then look at these…’

    It would then display three or four other products from the same child category (preferably one from each weblog)

    This is what I have so far:

    {exp:weblog:entries weblog="mugs|hoodies|cards" disable="member_data|trackbacks" sort="asc" related_categories_mode="on" }
    <a href="#">{product_baseimage}</a>
    {/exp:weblog:entries}

    I am not sure how to indicate which category the entry belongs to. Any help would be appreciated.

    Thanks

  • #2 / Oct 20, 2010 4:09pm

    Ingmar

    29245 posts

    Take a look at related categories mode, might be what you’re looking for.

  • #3 / Oct 20, 2010 6:28pm

    Alli

    158 posts

    Hi Ingmar

    Yes, I am trying to use the related categories mode but I think my code may be pulling in from all the entries related to the parent category.

  • #4 / Oct 21, 2010 10:06am

    Sue Crocker

    26054 posts

    Hmm.. I see in the docs:

    Note: Relationships, Reverse Relationships, Pagination, and Categories are not available when Related Category Mode is enabled.

    You may want to consider using something like Playa which would make this a whole lot easier.

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

ExpressionEngine News!

#eecms, #events, #releases