• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

Mapping content from old skin to new skin

You are not authorized to post a reply.
Sort:


New Member


Posts:6
New Member

    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



    Veteran Member


    Posts:629
    Veteran Member

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

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



      Veteran Member


      Posts:273
      Veteran Member

        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/
        Tjep's digital agencyRegards,
        Tycho de Waard

        Tjep's digital agency
        We just love DNN
        https://www.tjeps.com
        You are not authorized to post a reply.

        These Forums are dedicated to discussion of DNN Platform.

        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.

        Would you like to help us?

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

        Get Involved