+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Usercontrols on pages

Usercontrols on pages

4 posts, 0 answered
  1. Harry
    Harry avatar
    13 posts
    Registered:
    05 Aug 2008
    02 Jun 2011
    Link to this post
    Is there a way to tell what usercontrols are being used on a page?  trying to do an audit on our custom controls and can't really find an easy to accomplish this.  Maybe from the database?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    02 Jun 2011
    Link to this post
    Hi Harry,

    Page -control relation is persisted inside [sf_object_data] table. Programmatically you can use PageManager.GetControls method

    http://www.sitefinity.com/40/help/developers-guide/m_telerik_sitefinity_modules_pages_pagemanager_getcontrols__1.html

    All the best,
    Ivan Dimitrov
    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
  3. Harry
    Harry avatar
    13 posts
    Registered:
    05 Aug 2008
    03 Jun 2011
    Link to this post
    this is for Sitefinity 3.7, which doesn't have a sf_object_data table.  
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    03 Jun 2011
    Link to this post
    Hello Harry,

    In 3.x database you should check [sf_CmsCtrlLinks]. This table has the control ID and the Page ID.
    [sf_CmsCtrlLinks] has relation to [sf_WebControlBase] and [sf_PageBase]

    Kind regards,
    Ivan Dimitrov
    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
Register for webinar
4 posts, 0 answered