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, ...Any examples of a basic css skin that uses divs instead of tables?Any examples of a basic css skin that uses divs instead of tables?
Previous
 
Next
New Post
3/4/2008 3:09 PM
 

MikeTheVike wrote

 abecedarian wrote

 

Add a [NAV] token.

 

 

thank you abecedarian, that fixed that...I triedto declare the [CONTENTPANE:1] in a xml file, but I'm getting an error...

Could Not Load Skin: /Portals/_default//skins/grandview/skin.ascx Error: The tag contains duplicate 'id' attributes

 

my html file looks like this...




   
   
[CONTENTPANE]

   
[CONTENTPANE:1]

 

 

 

my xml looks like this...also not sure if putting LOGIN and CONTENTPANE in there is necessary...



    [LOGIN]
       
           
                id
                header
           
       


    [CONTENTPANE:1]
       
           
                id
                maincontent
           
       


    [CONTENTPANE]
       
           
                id
                leftcontent
           
       

   

 

Just use this for content panes, and leave em outta the XML.

<div id="PaneName" runat="server"> </div>

Make sure though that you have one with the ID "ContentPane", and all of them with the attribute runat="server".  You can use that in your HTML doc just fine, and the parser will recognise them as content panes.

Also you can move your control panel around by using <div id="ControlPanel" runat="server"></div>

Important though...If your a novices still, do not try this technique with other stuff like [NAV] or [SOLPARTMENU].  You should still use the XML & Token combo.

Basically, you should declare every token in the XML file, whether you are changing it or not, in my opionion.  This makes your XML file consistantly match your HTM file.  Then if say you load it up and the menu isn't quite right, or something, you can jsut open your xml and find the token already in there....kinda like....well....I just find it's easier when learning to put everything in there ahead of time, cause then you'll understand the layout of the XML file alot better and it becomes easier to read/understand each time.

 


Josh Martin

 
New Post
3/4/2008 4:31 PM
 

You don't need to include the LOGIN or CONTENTPANE sections in the xml file. DNN will automatically parse those properly.
You only need one for the second contentpane and it has to have the runat/server setting included too:

<Object>
    <Token>[CONTENTPANE:1]</Token>
        <Settings>
            <Setting>
                <Name>id</Name>
                <Value>leftcontent</Value>
            </Setting>
            <Setting>
                 <Name>runat</Name>
                 <Value>server</Value>
            </Setting>
        </Settings>
</Object>

You're getting the Duplicate ID errors because, in your HTML file, you're making a div called "leftcontent" and DNN is using the same name from the token in your XML file to create the panes. The divs must have a unique ID, so you can't call a div something then have DNN make another div with the same name.
If you open the ascx file in your skin folder, you'll see what I mean... that you have something like this:

    <div id="leftcontent">
        <div id="leftcontent" runat="server"></div>
    </div>
    <div id="maincontent">
        <div id="contentpane" runat="server"></div>
    </div>

Maybe try changing you HTML to something like this:

<div id="wholecontainer">
    <div id="header">[LOGIN]</div>
    <div id="left">[CONTENTPANE:1]</div>
    <div id="maincontent">[CONTENTPANE]</div>
</div>

 

 
New Post
3/4/2008 11:30 PM
 

After thinking about this a bit, I did something you might like.
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/109/threadid/209729/scope/posts/Default.aspx

~me

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Any examples of a basic css skin that uses divs instead of tables?Any examples of a basic css skin that uses divs instead of tables?


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