Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...PANE LEVEL SKINING !!!PANE LEVEL SKINING !!!
Previous
 
Next
New Post
3/11/2010 1:59 PM
 
Goran, If I'm to understand your somewhat broken English, you're looking for a clean, CSS, XHTML compliant, div-based, ul-menu-based CMS system..? DNN is all of the above. With a bit of homework on your side, you'll find that you would be able to pull off all that you want to and more. With the kind of programming experience you have, my suggestion would be to spend less time moaning about not being able to do it, and spend some time trying to prove to yourself that it could be done. Have a look at the skinning contest submissions and see if any of those examples change your mind...

Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
3/11/2010 4:29 PM
 

One other thing I would add is that if you want to really speed up your skinning, bypass the whole HTML/XML parsing method and just work directly with the .ascx files. I've found it to be incredibly more efficient, and I can see the changes 'real time' as I save and refresh. Since I can have around 5+ projects running at any given time, I simply created a basic skin.ascx files that has all the control calls at the top and the tokens at the bottom with my standard DIV/Spans (HeaderDIV, NavDIV, ContentDIV, etc.). I copy this file along with my skin.css, skin.doctype.xml, and other files into the _default\skins\SkinName folder, then swap over and start editing using Notepad++. When I'm done, I create a new package (outlined in one of the stickies here) with all the edited files for backup and then move on to module installation, setup, etc.

In the beginning I too was very fustrated by the innefficiency of the whole HTML Parsing method but since I started editing the .ascx files directly, life has become much less stressful for me. I think they have some video tutorials on the method over at DNNCreative.com too (a subscription I highly reccomend, they have some very useful video tuts).


Wells Doty Jr
Online Content Development
 
New Post
4/12/2010 5:51 PM
 

Ok i was few months editing skins via ascx files, but i must all the time search dnn tokens like menu, other dependent controls etc.
Parsing is generate automaticly controls on the top of ascx page. Because i was go to html editing ...

I have one quesion for that i have not found any solution without 3rd patry modules.

How to via html or ascx put js and css file links into html header tags.

<head>
<script type .... jqueryui.js> ...or
<style type .... mystyle.css> ..
</head>

 

<body>

 
New Post
4/13/2010 1:47 AM
 

Hi

 

If you have so many  years of programming experience, why not make your own web based solutions that can take your ascx skinslet cleitn modify some thigns and resave as ascx file sto give them skin editing freedom

About your queston regardig adding css or js to the head you cna simply do that  in a server side code block or write a skinobject that does it, you can use a free module that will handle this for you as well

http://wnsinj.codeplex.com/

 

if you want to do in skinobject or serverside code block

'Find the placeholder control
            Dim objCSS As Control = Page.FindControl("CSS")

 If Not objCSS Is Nothing Then
                'First see if we have already added the <LINK> control
                Dim objCtrl As Control = Page.Header.FindControl(ID)

                If objCtrl Is Nothing Then

                    Dim skinpath As String = String.Empty
                    skinpath = CType(Me.Parent, Skin).SkinPath
                    Dim objLink As New HtmlLink()

                    objLink.Attributes("rel") = "stylesheet"
                    objLink.Attributes("type") = "text/css"
                    objLink.Href = skinpath + "mycssfile.css"
objCSSControls.AddAt(-1, objLink)

                End If

-- for a script you could do something like

 

Dim strScript = "<script src='{0}' type='text/javascript'></script>"
                    Dim objLiteral As New System.Web.UI.WebControls.Literal()
                    Dim skinpath As String = CType(Me.Parent, Skin).SkinPath
                    Dim strInput As String = String.Format(strScript, skinpath + Script)
                    End Select
                    objLiteral.Text = strInput
                    objCSS.Controls.AddAt(-1, objLiteral)

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...PANE LEVEL SKINING !!!PANE LEVEL SKINING !!!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out