Hi,
it could'nt be that it is so complicated. AAAAARRRRR
I copy the folder /Themes/default and rename the copy to Themes/newtheme
Then I go to the new theme.config rename the theme to newtheme and throw away anyting else in the file. Now it looks like this:
<Theme title="newtheme" previewImageUrl="~/themes/newtheme/preview.png" previewText="This is the default site theme. Includes options for customizing fonts, colors, images, and layout. Allows CSS to be overridden."></Theme>
Now I change the sites default theme to newtheme.
Now I go to the /Themes/newtheme/Common/master.master and change the following lines:
<CSControl:Style runat="server" visible = "true" href="~/themes/default/style/Common.css" /><CSControl:Style runat="server" href="~/themes/default/style/common_print.css" media="print" /><asp:ContentPlaceHolder runat="server" id="HeaderRegion" /><CSControl:Style runat="server" href="~/themes/default/style/DynamicStyle.aspx" EnsureNotCachedOnPreview="true" /><!--[if lte IE 6]> <CSControl:Style runat="server" href="~/themes/default/style/alpha.css" /><![endif]-->
to this:
<CSControl:Style runat="server" visible = "true" href="~/themes/newtheme/style/Common.css" /><CSControl:Style runat="server" href="~/themes/newtheme/style/common_print.css" media="print" /><asp:ContentPlaceHolder runat="server" id="HeaderRegion" /><CSControl:Style runat="server" href="~/themes/newtheme/style/DynamicStyle.aspx" EnsureNotCachedOnPreview="true" /><!--[if lte IE 6]> <CSControl:Style runat="server" href="~/themes/newtheme/style/alpha.css" /><![endif]-->
When I visit the rendered Home page the sourcecode looks like this:
<link rel="stylesheet" href="/themes/default/style/Common.css" type="text/css" media="screen" /><link rel="stylesheet" href="/themes/default/style/common_print.css" type="text/css" media="print" /><link rel="stylesheet" href="/Themes/newtheme/style/forum.css" type="text/css" media="screen" /><link rel="stylesheet" href="/Themes/newtheme/style/gallery.css" type="text/css" media="screen" /><link rel="stylesheet" href="/Themes/newtheme/style/forum_print.css" type="text/css" media="print" /><link rel="stylesheet" href="/Themes/newtheme/style/gallery_print.css" type="text/css" media="print" /><link rel="stylesheet" href="/themes/default/style/DynamicStyle.aspx" type="text/css" media="screen" /><!--[if lte IE 6]> <link rel="stylesheet" href="/themes/default/style/alpha.css" type="text/css" media="screen" /><![endif]-->
What's going on here? I don't understand this!!!
Cheers,Philipp
Heya,
I'm a novice in CS2007 theming myself, but I believe you need to edit the ~/themes/newtheme/style/DynamicStyle.aspx and modify the instances of
ThemeConfigurationDatas.GetThemeConfigurationData("Default")
to
ThemeConfigurationDatas.GetThemeConfigurationData("newtheme")
Hi again,
no that's not the solution. If I delete the line
<CSControl:Style runat="server" href="~/themes/newtheme/style/DynamicStyle.aspx" EnsureNotCachedOnPreview="true" />
from master.Master, I get the same result.
What a pain in the ass
Philipp,
Try this...
<CSControl:Style runat="server" visible = "true" href="../style/Common.css" /><CSControl:Style runat="server" href="../style/common_print.css" media="print" /><asp:ContentPlaceHolder runat="server" id="HeaderRegion" /><CSControl:Style runat="server" href="../style/DynamicStyle.aspx" EnsureNotCachedOnPreview="true" /><!--[if lte IE 6]> <CSControl:Style runat="server" href="../style/alpha.css" /><![endif]-->
I just threw this together... I believe this might help. I tested it and if I recorded the steps correctly it should work if you are looking to create a new theme.
http://chumlyworldnews.com/blogs/twxztips/archive/2007/04/20/create-a-custom-theme.aspx
Thanks. That helped!
Thank you. That's it!
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com