0

One of the main templates on my site, the product page, has a single products channel entry, and up to 3 playa children (also products). I'm trying to get the categories for playa children. Here's my test code:

{exp:channel:entries channel="products" limit="1" status="open|wide|feature|glory"}
    <h1>Main Product: {title}</h1>
    {exp:playa:children field="also_like" status="open|wide"}
        <h1><a href="{title_permalink='site/product'}">{title}</a></h1> 
        <div class="age">Age: {categories show_group="5" limit="1" note="age range"}{category_name}{/categories}</div>
        <div class="environ">Env: {categories show_group="6" limit="1" note="environment"}{category_name}{/categories}</div>
    {/exp:playa:children}
{/exp:channel:entries}

Another page manages to display the categories, but it's directly from the channel:entries tag, rather than going through the playa:children.

Any help appreciated.

1 Answer 1

4

NotoriousWebmaster -

Playa disables categories by default. You'll need to add disable= to over-ride the parameter.

{exp:playa:children field="also_like" status="open|wide" disable="members"}

or similar.

Let me know if that helps!

2
  • d'Oh! I knew that! I'd read it somewhere along the way. Thanks. Apr 26, 2013 at 15:29
  • Woot! Happy to help. Have a great weekend!
    – Lisa
    Apr 26, 2013 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.