DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Mapping content from old skin to new skin

 2 Replies
 1 Subscribed to this topic
 19 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 16
New Around Here

I'm moving from an old skin to a new skin.

My old skin has content areas named as such: RowFive_Grid3_Pane1

My NEW skin, purchased from a vendor, has content areas named as such: RowFiveGrid3Pane1

When I move from my old to my new skin, due to the underscores, all of the modules lose their "place" on the page and move to the topmost section of the content layout.

Modifying the underlying .ascx file of the new skin to contain the underscores works, but only temporarily. This new skin uses some sort of theme module to make easy CSS changes to it; the unfortunate downside is that it always reverts the content areas back to the naming schema which breaks everything.

The new skin's theme module allows me to change the name of each section. Great! That means I can simply fix each one to contain the underscore. Except, unfortunately, the theme module doesn't allow renaming the sections with a few special characters such as underscores.

So here I am. I've emailed the vendor for help, but I figured I'd ask - is there  any way to get the actual modules themselves to associate with the new naming schema by modifying the database or something? Because that would solve all my problems.

Thanks

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

I have not used it in a while, but I used this:
Make sure to backup your databse before using this.

<code>Update TabModules<br />     SET PaneName = '&#91;Pane A&#93;'<br />     WHERE TabModules.TabModuleID<br />     IN (Select TabModuleID from<br />     (<br />         SELECT    <br />             TabModules.TabModuleID,<br />             TabModules.moduleid,<br />             Tabs.TabName,<br />             Tabs.PortalID,<br />             Tabs.IsDeleted,<br />             TabModules.PaneName,<br />             Tabs.TabID, Tabs.tabpath<br />             <br />             FROM    Tabs INNER JOIN<br />                 TabModules ON Tabs.TabID = TabModules.TabID<br />             WHERE<br />                   Tabs.SkinSrc = &#91;xx&#93; AND<br />                 TabModules.PaneName = '&#91;Pane B&#93;' AND<br />                   Tabs.PortalID= &#91;PID&#93; AND<br />                   NOT (tabs.TabPath like '//Admin%' OR Tabs.PortalID is null)<br />                   )<br />             AS Modules<br />         ) </code>

Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
If you are using a theme like DNNGo, the theme editor overrides from its own template. So, if you adjust a ascx file in /httpdocs/Portals/_default/Skins/20064-UnlimitedColorsPack-046 it will be overwritten each time you save the theme editor. If you adjust the same file 1 level deeper /httpdocs/Portals/_default/Skins/20064-UnlimitedColorsPack-046/xtemplate you change the source where the theme editor gets the files.

But that was the good old days (2 years ago). I did not try this in DNNGo Minis for example but its worth a shot to take a look at /httpdocs/Portals/_default/Skins/minis/template which is 1 level deeper than /httpdocs/Portals/_default/Skins/minis/

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved