Try Now
More in this section

Forums / General Discussions / See Name of Shared Content on Page?

See Name of Shared Content on Page?

2 posts, 0 answered
  1. Jared
    Jared avatar
    3 posts
    06 Jan 2012
    06 Feb 2012
    Link to this post
    Currently, when I view any shared content on a page, this is the message I get:

    This content is shared. It cannot be edited here, because the item workflow is turned on. You can edit the item in the Modules section
    Is there a way in Sitefinity 3.x to display the name of the shared content (so it would say instead This Content (name of module) is shared so that it is easier to find--rather than having to hunt it down.
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    14 Oct 2016
    09 Feb 2012
    Link to this post

    One possible way of doing this is to go through the Controls collection on a page and look for the control by its ID or type. You can check if  GenericContentControl.SharedContent is not null, and if so use ContentManager.GetContent(this.ContentID) where ContentID is the ContentID property of the GenericContent control on the page.

    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered