Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Page History: Sublayout Renaming - Sitecore

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: Wed, Apr 18, 2012, 2:48 PM


The following SQL, when run against the MASTER database, will give you the row that contains the path to the sublayout of interest.

select 
    * 
from 
    dbo.SharedFields 
where 1=1
    and ItemId = 'SublayoutGuid'
    and FieldId = 'E42081B6-8A95-4A11-89CE-DF70ED502F57'

When renaming a sublayout, be sure to change the following as well.

  • The name of the file in Visual Studio
  • The class name in the .ASCX.CS file
  • The class name in the .ASCX.DESIGNER.CS file
  • The Inherits attribute in the <%@ Control %> directive in the .ASCX file

You must also publish the sublayout under its new name before it will be available on the website.

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.