2

I have three DNN skins but they are similar. The difference is the style of ContentPane. Is there any way to create some "master" skin with header and footer and three subskins with different styles of Content pane? Because it's a bad idea to create skins which have 99% same markup, the only difference is content pane style.

Sanya530
  • 1,209
  • 4
  • 18
  • 24

1 Answers1

3

You could abstract the Header/Footer sections out in to their own ASCX files (referencing those from the main SKIN files), and then just have the Pane portion of the file be the differing part.

The other option would be to have One skin, with three different Panes, and instruct your users which PANE they should use in which scenario.

Chris Hammond
  • 8,873
  • 1
  • 26
  • 34
  • Could you give some links or explain how I can do "You could abstract the Header/Footer sections out in to their own ASCX files (referencing those from the main SKIN files), and then just have the Pane portion of the file be the differing part."? – Sanya530 Jun 06 '13 at 15:16
  • I don't have any examples, but basically create a controls folder /controls/ within your skin's folder. Put a HEADER.ascx file in there, move all the contents of the header into that ASCX file. Then add a reference to that ASCX file into your main skin file. – Chris Hammond Jun 06 '13 at 19:05
  • Thank you for the idea! I created two controls and simply include them into each new skin. – Sanya530 Jun 07 '13 at 09:15