More in this section

Forums / Developing with Sitefinity / Original source of shared content

Original source of shared content

2 posts, 0 answered
  1. Elizabeth
    Elizabeth avatar
    83 posts
    Registered:
    23 Mar 2005
    15 Jul 2009
    Link to this post
    I have added an additional provider so that different sites can have shared news content. Is there any way to be able to tell which site was the creator of the content? Like:

    News Article 1 - Site A
    News Article 2 - Site B
    News Article 3 - Site A
    News Article 4 - Site C

    Elizabeth
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    15 Jul 2009
    Link to this post
    Hi Elizabeth Munsey,

    You can crate a metakey where you can store the website name. You can also return a content item provider programmatically. Below is a sample code.

    ContentManager cntManager = new ContentManager("News"); 
    IContent cnt = cntManager.GetContent("FACA0024-19F3-40b0-A51E-CCA221A511E"as IContent; 
    if(cnt !=null
    Response.Write(cnt.ProviderName.ToString()); 

    Let us know if there is anything else that we can do for you.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered