Different Skin, resp. CSS for View/Edit Mode
Last Post 03/29/2007 5:42 AM by Daniel Steinmann. 3 Replies.
Author Messages
Daniel Steinmann
Nuke Newbie
Nuke Newbie
Posts:3


--
03/25/2007 11:58 PM
    First, thank's to dnncreative for the great tutorials, I learned much about skinning :-)

    I realized a skin with some hidden and some auto overflows and the standard scrollbar disabled and it's working fine. This is creating some problems with the skin in edit mode where the scrollbar is needed and the positioning of the position:fixed for the contentpane does troubles too. Is there a possibility to select different skins or css-files for the edit and view mode, can I do that in the skin.xml, another xml file or do I need to adopt the code of DNN?

    It's not the question of portal and admin skin's, thats working fine. Even it's not a question of Doctype. I'm working with DNN 4.4.1 and fully changed to the doctype XHTML with a pure css skinI'm experiencing and searched for hours, but no solution on the way until now.

    Thank's for every approach.
    Daniel
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    03/26/2007 10:38 AM
    Hello,

    If the admin skin that you can select in admin/site settings does not cover your needs, it may be worth reading this blog post by John Mitchell: http://blogs.snapsis.com/PermaLink,...ea4a3.aspx

    It details how to enable admin only content within your skin.
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Daniel Steinmann
    Nuke Newbie
    Nuke Newbie
    Posts:3


    --
    03/26/2007 10:53 PM

    Hello Lee

    thank you for the response, I think this could solve my problems :-)
    Will report if I succeded.

    Best regards,
    Daniel

    Daniel Steinmann
    Nuke Newbie
    Nuke Newbie
    Posts:3


    --
    03/29/2007 5:42 AM

    Hello Lee,

    thank's for the tipp, I did it :-)

    It was finally very simple, I override the css tag definitions used for the edit mode within the little script in my skin and now it's working.

    <% If DotNetNuke.Security.PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName) %>
     
    <% End If %>


    Just I had to set overflow-x within my wrapper, otherwise the horizontal scrollbar is not shown, but I think that's only a little problem what can wait to be solved.

    Best regards
    Daniel



    ---