¿Hay alguna manera de cambiar el tema predeterminado de una colección de sitios y subsitales futuros?

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/79750

  •  10-12-2019
  •  | 
  •  

Pregunta

Estoy tratando de marcar nuestra extranet en SP 2013. La colección de sitios está utilizando el tema OOB "Orange".Cuando creo un subsito, el subsito usa el tema predeterminado de SharePoint 2013.Puedo regresar y cambiar la mirada al tema "naranja", pero ¿hay una manera de cambiar el valor predeterminado para la colección del sitio y todos los subsitios en el tema "naranja"?¿O hay una casilla de verificación que perdí en algún lugar que casede la opción de tema para todos los subsitios en esta colección de sitios?

¡Gracias por su ayuda!

¿Fue útil?

Solución

Not very sure whether we can do that with UI.

Making use of event receivers we can apply the chosen theme after the site is created.

Sample code:

SPFile spColorFile = targetWeb.GetFile(targetWeb.ServerRelativeUrl + "/_catalogs/theme/15/Palette002.SPCOLOR"); 

SPTheme spTheme = SPTheme.Open("ProgrammedTheme", spColorFile);

spTheme.ApplyTo(targetWeb, true);
Licenciado bajo: CC-BY-SA con atribución
scroll top