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.

Using Categories tag with Multiple Site Manager

December 14, 2011 12:10pm

Subscribe [3]
  • #1 / Dec 14, 2011 12:10pm

    Cartegraph

    83 posts

    How can I access categories from another site within the MSM installation? This doesn’t seem to work.

    {exp:channel:categories category_group="default_site:15" parent_only="yes"}
       
         {category_name}
      
    {/exp:channel:categories}

    Thanks!

  • #2 / Dec 14, 2011 5:46pm

    Cartegraph

    83 posts

    Any insights as to why this doesn’t work?

  • #3 / Dec 15, 2011 3:39pm

    Kevin Smith

    4784 posts

    Hi lukedavid,

    I believe the some_site:# syntax is only meant for embed tags. For all other tags, you should use the site parameter.

    Try this:

    {exp:channel:categories category_group="15" site="default_site" parent_only="yes"}
       
         {category_name}
      
    {/exp:channel:categories}

    Does that do it?

  • #4 / Dec 15, 2011 3:43pm

    Cartegraph

    83 posts

    Unfortunately no. it isn’t returning anything. I have made sure to make sure that i am targeting the correct shortname for the site also as well as the correct category group.

  • #5 / Dec 19, 2011 10:43am

    Cartegraph

    83 posts

    This type of functionality is required by the design of the sites. If it isn’t possible would sql queries work?

  • #6 / Dec 20, 2011 11:40am

    Cartegraph

    83 posts

    So I guess you have to include a channel. I might have to do a query statement for a work around.

  • #7 / Dec 20, 2011 7:58pm

    Sean C. Smith

    3818 posts

    Luke,

    Yes the channel parameter is required unless you only have one channel docs. Is there anything else I can do to help?

    Sean

  • #8 / Dec 21, 2011 9:35am

    Cartegraph

    83 posts

    I think the best option is the use a sql query.

  • #9 / Dec 22, 2011 6:32pm

    Sean C. Smith

    3818 posts

    Luke,

    Yes that is probably the best option at this point. If you need help with the query feel free to post in the community support area. I’m sure someone will help you out there.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases