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!
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
December 14, 2011 12:10pm
Subscribe [3]#1 / Dec 14, 2011 12:10pm
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
Any insights as to why this doesn’t work?
#3 / Dec 15, 2011 3:39pm
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
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
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
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
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
I think the best option is the use a sql query.
#9 / Dec 22, 2011 6:32pm
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