More in this section

Forums / Developing with Sitefinity / How to share generic content between different projects

How to share generic content between different projects

2 posts, 0 answered
  1. Keen
    Keen avatar
    10 posts
    Registered:
    28 Dec 2008
    08 Jan 2009
    Link to this post
    Hi,
    I would like to know how to share a generic content module between projects so that when there's a change in the module, it's applied in all the projects. I already set up a shared database.
    Thanks for your help
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Jan 2009
    Link to this post
    Hi Keen,

    Thank you for using our services.

    If the application name for Generic_Content provider is the same in the both web.config files the the content will be shared.

    The default web.config file.( your websites will have shared GC)

    <providers> 
            <clear /> 
            <add name="Generic_Content" urlRewriteFormat="[Publication_Date]/[Name].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="True" defaultMetaField="Name" securityProviderName="" allowLocalization="False" allowVersioning="True" allowWorkflow="False" allowComments="false" commentsModeration="true" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data" /> 

    If you want to have different content you should use different application name .

    applicationName="/Generic_Content_Sport" 

    I hope this helps.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered