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, ...DNN 5 Skinning BasicsDNN 5 Skinning Basics
Previous
 
Next
New Post
11/2/2009 1:54 PM
 

Hi

I'm fairly new to DNN, the only exposure I have to cms's is Joomla, altough I acutally work as a .net developer, meaning I have a fairly good  grasp of the .net basics.

First off I'm building the skin using the [TOKEN] syntax. Problem is I don't quite understand how, by moving these tokens around in the HTML, the skin either parses or not. Here's some HTML with tokens. The code shown here parses fine. However once I actually comment the first [CONTENTPANE] out and uncomment the bottom one the skin no longer parses. Why is that?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link rel="stylesheet" type="text/css" href="skin.css" />
    <title></title>
</head>
<body id="body">
    <div id="outer_container">
        <div class="template_style">
            [LOGIN]
            <div class="logo_top">
                <div class="logo_top_left">
                    <div class="logo_top_right">
                        <div class="logo_top_bg">
                        </div>
                    </div>
                </div>
            </div>
            <div class="banner_bg">
            </div>
            <div class="middle_bg">
                <div class="middle_left_bg">
                    <div class="middle_right_bg">
                        <div class="middle_content">
                            <object id="QuickMenu" codetype="dotnetnuke/server" codebase="CONTENTPANE">
                            </object>
                            [CONTENTPANE]
                        </div>
                    </div>
                </div>
            </div>
            <div class="main_menu">
                <div class="main_menu_left_bg">
                    <div class="main_menu_right_bg">
                        <div class="main_menu_bg">
                            [LINKS]
                        </div>
                    </div>
                </div>
            </div>
            <div>
            
    <!--[CONTENTPANE]-->
            </div>
        </div>
    </div>
</body>
</html>

I'm used to joomla which works pretty much the same except there you can move these placeholders anywhere on the page without breaking anything?

Lastly I'm edting the HTML file from within VS2008. I understand that the HTML with it's tokens get compiled into an ascx file. However once, I've parsed a skin successfully through the site and return to VS it asks me "...the code has been modified outisde the environment. Do you want reload?"

And heaven forbid I answer yes to that, because then it takes over and just removes some of my code - basically messing up my HTML.

Why???

Perhaps I'm voilating some DNN basics here and apologise if so, but can someone please point me in the right direction ?

 

Thanks in advance

 

 
New Post
11/2/2009 6:30 PM
Accepted Answer 

Commenting out a token still parses it and will give you an error, simply remove it an parse again.

(The parser sees 2 times [CONTENTPANE], which is not allowed)

BTW, I would use object tags, not tokens, read the top post of this forum for more info.

Visual studio asks you about the generated ASCX, wich changes if you parse the skin.

Normally this should not influence the HTML file

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN 5 Skinning BasicsDNN 5 Skinning Basics


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