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

Forums / Developing with Sitefinity / Database table for Generic Content

Database table for Generic Content

3 posts, 1 answered
  1. Constantin Aparaschivei
    Constantin Aparaschivei avatar
    27 posts
    Registered:
    10 Nov 2009
    16 Dec 2009
    Link to this post

    I have a sitefinity 3.6 website with lots of html code placed in generic content web controls (dragged into content placeholders).
    I have to replace an image which is present in all pages, and the easiest way seems a database script. Can someone tell me the table where this data is stored?

    I have a lot of pages, and manual edit will probably take 2-3 days :)

    Thanks.

    Edit: forgot to mention that image is part of the code on each page, added as html in generic content.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    16 Dec 2009
    Link to this post
    Hello Constantin Aparaschivei,

     If you have just entered html in the GenericContent control, this means that data is not IContent object ( created through GenericContent module) and this html is just RadEditor.Content. You should be able to find the content under [sf_CmsControlProperty]

    sample

    SELECT TOP 1000 [ControlID]
          ,[Name]
          ,[ParentID]
          ,[ParentName]
          ,[Value]
      FROM [CMSDEV].[dbo].[sf_CmsControlProperty] WHERE Value ='test'

    Another option is using The Replace Tool.


    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Answered
  3. Constantin Aparaschivei
    Constantin Aparaschivei avatar
    27 posts
    Registered:
    10 Nov 2009
    16 Dec 2009
    Link to this post
    That is exactly what I need, thanks.
Register for webinar
3 posts, 1 answered