R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Pane Level Skinning
Last Post 01 Jan 1900 05:00 AM by . 0 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
contactdpUser is Offline
Basic Member
Basic Member
Posts:475

--
09 Nov 2005 06:16 PM  

Although skins and containers are created, packaged, and deployed independently, it is very likely that you will create a skin and container combination which is intended to work together. Of course this can be accomplished by uploading both the skin and the container and then applying them to your portal user interface. To simplify this operation and provide a higher degree of granularity, a concept known as Pane Level skinning is also available.

Solution:

Pane level skinning can only be configured at design-time when the skin designer constructs the skin. It involves the use of some custom attributes which can be included in the markup for the pane. The ContainerType, ContainerName, and ContainerSrc attributes are used to identify a specific container to be used with all modules injected into the pane. In order for this to work correctly, the container must exist in the location specified otherwise the default container will be displayed.

In Skin.html or skin.ascx you can add attributes like shown below

<td class="Leftpane" id="LeftPane" ContainerType="G" ContainerName="MyContainer" ContainerSrc="standard.ascx" runat="server" visible="true">< / td>

ContainerType:
Container Type "G" = Host Container (i.e. stored in portals/_default)
Container Type "L" = Portal Container (i.e stored in portals/{portal ID})

ContainerName:
DNN creates a subfolder for each container because you can have multiple containers in that folder. For example, you could have a container called "MyContainer" and within it you could have "Standard.ascx", "Red.ascx", "Blue.ascx", "Green.ascx" etc.

ContainrSrc:
Container Source file which you may want to apply form your container folder.

Or

If your using [CONTENTPANE] Tockens for panes in skin.html

use this XML for Skin in your skin.xml

<Objects>
  <Object>
    <Token>[CONTENTPANE:1]< / Token>
        <
Settings>
              <
Setting>
                  <Name>IDName>
                  <Value>LeftPane< / Value>
              < / Setting>
              <Setting>
                  <Name>ContainerType< / Name>
                  <Value>G< / Value>
              < / Setting>
              <Setting>
                  <Name>ContainerName< / Name>
                  <
Value>MyContainer< / Value>
              < / Setting>
              <
Setting>
                  <
Name>ContainerSrc< / Name>
                  <
Value>standard.ascx< / Value>
              <
/ Setting>
        <
/ Settings>
    <
/ Object>
<
/ Objects>

Durga Prasad(DP) | Senior Web Engineer<br>R2integrated
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share