Removing Basic Frontend Theme causes issues with the design
Custom controls which have Resource links (css only, js not affected) don't seem to download when you remove the Basic frontend theme...put it back and all is well again.
Hello Steve,
Could you provide some more information about what exactly you are trying to achieve. Are you removing the Basic frontend theme from Advanced settings? Can you send us a sample of your custom control. Thank you in advance!
All the best,What I was trying to achieve was that I had no need for the Basic theme to even be an option, so I killed it :)
I can't send the custom control, but just make a plain simple view control in an assembly, and in the layouttemplate add a reference to en embedded .css, and register that css in the assemblyinfo.
The CSS won't be downloaded
Hi Steve,
I tried to replicate this issue locally, but the css class I set applied correctly over the page after I removed the Basic theme. Here are the steps I followed, so let me know if I missed something here
1. Created a class and template for it
2. Created a simple css that sets background of the body.
3. The class, template and css were embedded resources
4. In the template I added
<sitefinity:ResourceLinks ID="ResourceLinks1" runat="server" UseEmbeddedThemes="true">
<sitefinity:ResourceFile Name="Telerik.Sitefinity.Samples.Resources.Layout.css" Static="true" AssemblyInfo="Telerik.Sitefinity.Samples.Reference, Telerik.Sitefinity.Samples" />
</sitefinity:ResourceLinks>
5. Then I dropped the control on a page
6. I went to the backend >> Settings and removed the Basic theme
7. I returned back to the front end and request the page - the css class I used was properly applies.
Best wishes,
Ivan Dimitrov
the Telerik team
Hmm, I guess the only difference was I removed Basic first....and when I went to the page I get a message up here it says "Draft Saved" that complained it couldn't find the basic theme...
Hello Steve,
I changed the order of the steps, but I am not able to replicate the issue.
Regards,
Ivan Dimitrov
the Telerik team
I'm having this same issue. We had no need for the basic theme, so I deleted that theme from the solution. Now, any page I edit displays "The selected theme could not be found: Basic." .
How do I go about fixing this issue? I l first thought that I needed to disassociate the theme from the template and/or pages, but don't see that option anywhere. Before I start hunting this down in the database, I'm hoping someone can help.
Thanks!
Hello Freddy,
If you have removed the Basic theme which was still in use by some page templates the red message will appear on pages that use templates to which Basic theme is assigned. To assign a new theme to template go to Design->Page templates select a template and click Theme in the right column. You will need a new theme registered to replace the old one(it can also be empty theme with no css added.)or select no theme. To add new theme refer to the documentation.
Greetings,
Stanislav Velikov
the Telerik team