I have 10 different sites with different databases, each site is for a particular location/country like us.example.com.
And I have a main site (example.com) which will show content from all sites.
Content posted on main site will be visible on a site if address in content is filled with sub site country like USA.

For example I have a content type Projects which has a field for country, now if I add a project on main site example.com and select US as country then this content should now be visible on us.example.com.

So basically I need to share content between multisites only for a single content type with some conditions.
Is there any method/article/plugin available to get this done ?

I am trying to write a custom module but not sure from where to start.

Comments

Jaypan’s picture

You are asking if this can be done with modules, then saying you are trying to write your own module.

If you are asking if this can be done with modules, you need to read this: https://www.drupal.org/node/643758

Then move the thread by editing the original post and choosing 'Post Installation' as the forum.

If you are writing your own module, you need to tell us what you have written so far, and where you are stuck. If you don't even know where to start, then you aren't ready to write your own module, and you should move this to the Post Installation forum as described above.

WorldFallz’s picture

All posts were touched by 'lizzjoy' and only 1 had any visible changes. Might be worth posting an issue in the webmaster's issue queue or contacting her through her contact form.

devtherock’s picture

Do you have any possibility to share or expose content from the mother site if yes try the feed module and expose content with views.