Login
Register
09-09-2010

Resources for the DotNetNuke Community


Support this site

  PA v3.0  

  PA v2.1.2  

  Sample Skin  

Use this sample skin to test the TEMPLATEPRINT sko. This is a copy of the default DNNBlue skin modified to use this sko. It contains a skin and container for regular pages (SiteSkin, SiteContainer), and a skin and container for printed pages (PrintSkin, PrintContainer)
  Feedback  

TemplatePrint SkinObject  TemplatePrint SkinObject   Print  

Features | Creating a print template | Attributes | Revision History
 

Attributes

The attributes for the [TEMPLATEPRINT] SkinObject are assigned in the same way as the attributes for the core SkinObjects ([TITLE], [VISIBILITY],...)

On the Container.xml you can use these new attributes:

Token Attribute Default Description
[TEMPLATEPRINT] PrintIcon print.gif The custom print icon file located in the contaniner file

ToolTip Printer friendly version The text shown when the mouse pointer hovers over the image.

Text
If set it will display a hyperlink next to the image with this text

CssClass
The style applied to the hyperlink

Template printmodule The skin file to use. If this skin is not found on the skin folder, the printmodule.ascx skin in the default skin package will be selected. Do not append .ascx to this attribute.

Container notitle The container file to use. If this container is not found on the same container folder as the one that includes the token, the notitle.ascx container in the default container package will be selected. Do not append .ascx to this attribute.

ShowText true Specifies if text should be displayed. Valid values: true / false.

ShowIcon true
Specifies if icon should be displayed. Valid values: true / false.

Here is an example of how this could be used in the xml file:

<Objects>
 <Object>
  <Token>[TEMPLATEPRINT]</Token>
  <Settings>
   <Setting>
    <Name>PrintIcon</Name>
    <Value>MyPrintImage.gif</Value>
   </Setting>
   <Setting>
    <Name>Template</Name>
    <Value>MyPrintSkin</Value>
   </Setting>
   <Setting>
    <Name>Container</Name>
    <Value>MyPrintContainer</Value>
   </Setting>
   <Setting>
    <Name>ToolTip</Name>
    <Value>Print this!</Value>
   </Setting>
   <Setting>
    <Name>Text</Name>
    <Value>Printer friendly version</Value>
   </Setting>
   <Setting>
    <Name>CssClass</Name>
    <Value>MyStyle</Value>
   </Setting>
  </Settings>
 </Object>
</Objects>

 


Creating a print template | Page 3 of 4 | Revision History
© Vicenç Masanas Terms Of Use Privacy Statement   
.