Quick Nav:  Online Store   |   Login | Register

CSSEditor.js does not appear on my pages - can't use CSS skins - help please

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Ryan Smyth
<20 Posts
Posts:2


09/09/2004 2:30 AM  
Hello,

I still haven't installed CSS skins on our production server, and it is still only on a test server.

From a fresh install of DNN 2.1.2 I installed CSS 2.5.0 then 2.5.3 then the 2.5.3 patch. The Aqua and other skins work ok, but I can't get it to work on my custom skins.

The "CSSEditor.js" doesn't come out in the web pages, so I can't use it - no floating controls. i.e. I get this in my pages:

[CODE]

< LINK rel="stylesheet" type="text/css" href="/DesktopModules/SnapsisDNN/Skins/Default.css" >< /LINK >
< LINK id="_Portals__default_Skins_1_" rel="stylesheet" type="text/css" href="/Portals/_default/Skins/1/skin.css" >< /LINK >
< SCRIPT language="javascript" src="/DesktopModules/SnapsisDNN/Utils.js" >< /SCRIPT >
< SCRIPT language="javascript" src="/DesktopModules/SnapsisDNN/Admin.js" >< /SCRIPT >

...

< SCRIPT LANGUAGE='JavaScript' >< !--
document.formsΎ].onload = snapsis_onLoad();snapsis_onLoadAdmin();
// -- >
< /SCRIPT >

[/CODE]

but the prepackaged skins get:

[CODE]

< LINK rel="stylesheet" type="text/css" href="/DesktopModules/SnapsisDNN/Skins/Default.css" >< /LINK >
< LINK rel="stylesheet" type="text/css" href="/DesktopModules/SnapsisDNN/CSSEditor/CSSEditor.css" >< /LINK >
< SCRIPT language="javascript" src="/DesktopModules/SnapsisDNN/CSSEditor/CSSEditor.js" >< /SCRIPT >
< LINK rel="stylesheet" type="text/css" href="/Portals/_default/Skins/AquaBlue/AquaBlue.css" >< /LINK >
< SCRIPT language="javascript" src="/DesktopModules/SnapsisDNN/Utils.js" >< /SCRIPT >
< SCRIPT language="javascript" src="/DesktopModules/SnapsisDNN/Admin.js" >< /SCRIPT >

...

< SCRIPT LANGUAGE='JavaScript' >< !--
document.formsΎ].onload = snapsis_onLoad();snapsis_onLoadAdmin();
// -- >
< /SCRIPT >

[/CODE]


I've been a good boy and fully expect Santa to leave me a small mountain... Which is why I can't figure out why CSS skins 2.5 doesn't like my custom skins... (Do I blame it on renegade elves?)

Any help or pointers is appreciated.

Ryan




John Mitchell
<500Posts
Posts:355


09/09/2004 1:15 PM  

Hi Ryan,

The difference that isn't immediately noticeable in the sample CSS Skins is that the CSS Editor is included inside the AdminMenu (which is included from the main skin .ascx)

If you do not use the AdminMenu from the SnapsisDNN/Skins folder, then you will need to reference the CSS Editor directly in your main skin with the folowing two lines of code:

<%@ Register TagPrefix="SnapsisDNN" TagName="CSSEditor" Src="~/DesktopModules/SnapsisDNN/CSSEditor/CSSEditor.ascx"%>

<SnapsisDNN:CSSEditor runat="server" id="CSSEditor" />

The CSS Editor then adds the reference to the CSSEditor.js file in the links.

BTW, CSS Skins 2.5.3 already has the 2.5.3 patch applied and you can just load that without loading 2.5, or the patch for 2.5.3

Ryan Smyth
<20 Posts
Posts:2


09/09/2004 8:15 PM  
Hi John,

Well, I finally did get the CSS editor working with those two lines you posted:

< %@ Register TagPrefix="SnapsisDNN" TagName="CSSEditor" Src="~/DesktopModules/SnapsisDNN/CSSEditor/CSSEditor.ascx"% >

< SnapsisDNN:CSSEditor runat="server" id="CSSEditor" / >

I tried everything I could think of, and had this code to include the admin and CSS menus - it gets the CSS menu, but not the admin menu, and if I removed the two lines above, the CSS menu disappeared again:

< %@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="Snapsis.DNN.Skins.DesktopDefault" % >
< %@ Register TagPrefix="portal" Namespace="Snapsis.DNN.Skins" Assembly="Snapsis.DNN.Skins" % >
< %@ Register TagPrefix="portal" TagName="AdminMenu" Src="~/DesktopModules/SnapsisDNN/Skins/AdminMenu.ascx" % >
< %@ Register TagPrefix="SnapsisDNN" TagName="CSSEditor" Src="~/DesktopModules/SnapsisDNN/CSSEditor/CSSEditor.ascx"% >

< SnapsisDNN:CSSEditor runat="server" id="CSSEditor" / >


Finally, I changed it all and got it working with this code:

< %@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="Snapsis.DNN.Skins.DesktopDefault" % >
< %@ Register TagPrefix="portal" Namespace="Snapsis.DNN.Skins" Assembly="Snapsis.DNN.Skins" % >
< %@ Register TagPrefix="portal" TagName="AdminMenu" Src="~/DesktopModules/SnapsisDNN/Skins/AdminMenu.ascx" % >

< portal:AdminMenu id="dnnAdmin" runat="server" >< /portal:AdminMenu >

If you could add this to the documentation, I think it would make things a lot easier. The current documentation isn't clear about how the actual controls get injected into the page, so a small note that is explicit about how to add the controls would really really help a lot. Remember - users are stupid ;-)

Anyways, it's a great control and I can't wait to get my designer working with it.

Thanks,

Ryan


John Mitchell
<500Posts
Posts:355


09/11/2004 7:41 PM  

Thanks for the feedback Ryan.  You're not the only one who has had trouble modifying your own skins to use the editor and/or the admin menu.  I'm thinking I need to update the samples so that the CSS Editor is not included in the AdminMenu by making both of them work independent of the other.

 

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >Bugs and other Issues > CSSEditor.js does not appear on my pages - can't use CSS skins - help please



ActiveForums 3.7
Powered by: Snapsis Software