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.

Does exp:channel:categories work with the site parameter?

July 05, 2011 5:06pm

Subscribe [2]
  • #1 / Jul 05, 2011 5:06pm

    Ian Cook

    93 posts

    I’m trying to list the categories of another MSM site, similarly to how I’m outputting the channel entries from another MSM site…

    {exp:channel:categories channel='blog' site="SiteB" show_empty="yes" style='linear' disable='category_fields'}

    ...but this doesn’t seem to work for categories. I’m not finding any reference to being able to use the site parameter in the categories tag, so I guess this post is just to verify that, no, you can’t output categories from another MSM site (except potentially by using the query tag)?

  • #2 / Jul 06, 2011 12:16pm

    Kevin Smith

    4784 posts

    Hi Ian,

    According to the User Guide, the site parameter should work for the channel categories tag. Could you try simplifying your tag to the bare minimum to see if you can get it to work?

  • #3 / Jul 06, 2011 2:38pm

    Ian Cook

    93 posts

    {exp:channel:categories channel="blog" site="sen-dev"}
    <li><a href="/blog/topic/{category_id}/">{category_name}</a></li>
    {/exp:channel:categories}

    The above outputs nothing. Changing the tag to an entries tag with the same parameters outputs the expected entries:

    {exp:channel:entries channel="blog" site="sen-dev"}
    <li>{title}</li>
    {/exp:channel:entries}

    I’m running EE 2.2.0 (hotfixed)


    Running the categories tag inside the ‘sen-dev’ site itself (not from another site’s template) outputs the categories as expected as well, so I know that the content is there.

  • #4 / Jul 12, 2011 9:18pm

    Kevin Smith

    4784 posts

    Hi Ian,

    I’m not able to replicate this issue on my end. Be on the lookout for an email from me, and we’ll see what’s going on first-hand.

    We’ll get you fixed right up.

  • #5 / Jul 12, 2011 9:33pm

    Ian Cook

    93 posts

    Thanks Kevin, unfortunately this is only hosted on a local dev server currently.

    If you say it works on your end, that’s good enough for me. I’ll re-deploy a freshly downloaded copy of the latest EE and try it again.

  • #6 / Jul 13, 2011 5:35pm

    Sue Crocker

    26054 posts

    Sounds good, Ian. Give it a try and let us know what you find out. We’ll be here.

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

ExpressionEngine News!

#eecms, #events, #releases