# Multi-site extension and Tags extension

**URL:** <https://www.ruby-forum.com/t/multi-site-extension-and-tags-extension/154355>\
**Category:** Radiant CMS\
**Created:** [November 28, 2008, 5:35am UTC](https://www.ruby-forum.com/t/multi-site-extension-and-tags-extension/154355 "2008-11-28T05:35:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![qrc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/8797f3/32.png) [@qrc](https://www.ruby-forum.com/u/qrc)\
**Post date:** [November 28, 2008, 5:35am UTC](https://www.ruby-forum.com/t/multi-site-extension-and-tags-extension/154355/1 "2008-11-28T05:35:08Z")

</div>

I’m attempting to use both the radiant-multi-site extension and the  
radiant-tags extension. Individually they both work great but when used  
together the tags work across all sites.

I am developing two sites for a local charity. They want to be able to  
manage both from a single interface and Radiant with the multi-site  
extension seems perfect. However, they would like to be able to use tags  
on both sites too. But different sets of tags. At the moment a tag  
created on one site shows up in the tag list/cloud of both sites. They  
would like each site to have it’s own unique tags.

Am I making sense?

Do you have any suggestion as to how I might go about finding a  
solution? I’m a novice programmer, new to Ruby/Rails/Radiant, and don’t  
really know where to start. I would really value any advice or guidance  
on how best to try and approach this.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![qrc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/8797f3/32.png) [@qrc](https://www.ruby-forum.com/u/qrc)\
**Post date:** [December 1, 2008, 5:49am UTC](https://www.ruby-forum.com/t/multi-site-extension-and-tags-extension/154355/2 "2008-12-01T05:49:16Z")

</div>

Josh,

On Nov 27, 2008, at 11:35 PM, Josh Hart wrote:

> I’m attempting to use both the radiant-multi-site extension and the  
> radiant-tags extension. Individually they both work great but when  
> used  
> together the tags work across all sites.

[snip]

> However, they would like to be able to use tags  
> on both sites too. But different sets of tags. At the moment a tag  
> created on one site shows up in the tag list/cloud of both sites. They  
> would like each site to have it’s own unique tags.

The trouble is that the multi\_site extension doesn’t know about the  
meta\_tags table, so you’d have to find a way to scope the tags table  
by site\_id just like the multi\_site extension does for the users  
table, here:

> <https://github.com/zapnap/radiant-multi-site-extension/blob/master/db/migrate/005_add_site_id_to_users.rb>

Then you can add code to add/delete/use tags that are scoped to a  
site, much like you can add users scoped to a site.

Hope that helps.

Cheers,  
Aditya

–  
Aditya ([http://aditya.sublucid.com](http://aditya.sublucid.com))

–  
Aditya ([http://aditya.sublucid.com](http://aditya.sublucid.com))
