Sitefinity 6.2 Bug - Theme not saved
Hi
I am using Sytefinity 6.2 build 6.2.4910.0 Standard Edition. The registered theme for my template is ignored when adding a page translation in a different language other than the main one. In order to reproduce this, follow this steps:
1. From SF Project Manager create a new project;
2. Right click on the project > Edit in Visual Studio;
3. Add the "App_Themes" folder to the project root, then add a theme, let's say "Versace". Create the Global folder then add a CSS file named "versace.css" in it as follows (\App_Themes\Versace\Global\versace.css):
.box
background-color
:
red
;
border
:
1px
solid
black
;
width
:
100px
;
height
:
100px
;
margin
:
100px
auto
;
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="SiteRoot.master.cs" Inherits="SitefinityWebApp.Application.Masterpages.SiteRoot" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
asp:ContentPlaceHolder
ID
=
"head"
runat
=
"server"
>
</
asp:ContentPlaceHolder
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
asp:ContentPlaceHolder
ID
=
"ContentPlaceHolder1"
runat
=
"server"
>
</
asp:ContentPlaceHolder
>
</
div
>
</
form
>
</
body
>
</
html
>
<%@ Master Language="C#" MasterPageFile="~/Application/Masterpages/SiteRoot.Master" AutoEventWireup="true" CodeBehind="HomePage.master.cs" Inherits="SitefinityWebApp.Application.Masterpages.Nested.HomePage" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"head"
runat
=
"server"
>
</
asp:Content
>
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"ContentPlaceHolder1"
runat
=
"server"
>
<
div
class
=
"box"
>lalalala</
div
>
<
asp:ContentPlaceHolder
runat
=
"server"
ID
=
"cphTest"
></
asp:ContentPlaceHolder
>
</
asp:Content
>
@The,
Not sure if its a bug or a feature but it has been like this for a while, so for what it's worth you're doing it the right way :)
BTW
You need a localized template otherwise widget content will remain invariant and not translate to french like your content.
Hello,
This is expected behavior since themes are applied to templates, not to pages directly. Jochem is also right, you need to have translations to your templates in all languages if you are planning to use Multilingual. Thus you will not have any issues related to widgets content .
If you have any additional questions, do not hesitate to contact us.
Ok guys,
thank you for your help. It's good to know i was doing things the right way. I will mark this thread as answered.