DNN Forums

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

Container Skin works in Edit, Disappears on View

Sort:
You are not authorized to post a reply.





New Around Here





    Cross posted - https://stackoverflow.com...isappears-after-edit

     

    Having a 911, weird issue with DNN 9.x.

    I am building a series of custom page skins, and custom container skins --- all based on a really clean bootstrap template. I've done this countless times without issue.

    I have a custom container (module) skin, called HeroSection.ascx. When the page/site is in edit mode, the styling/html elements within HeroSection.ascx appear as you'd expected. When the site/page is taken out of edit mode (returned to viewing), all of the styling/markup elements within HeroSection.ascx disappear -- the content of the module is still there, but the there's no trace of the container skin.

    The container and skin files are in their correct places within the site structure. The page/container skins are set in Manage -> Themes

    To test this further, I created an additional container skin called default.ascx (full code below), and added the "wtaf" ID so I could search for it in the browser's console. I applied the container skin and the red background shows up when the site/page is in edit mode. When I take the site/page out of edit mode, the module's content is there, but the red bar disappears and the container skin's markup (including the wtaf) is nowhere to be found in the browser console.

    Any idea what's going on here? THANKS

    [code/markup snippet is visible at the above StackOverflow link.  Sorry, couldn't figure out how to post it here]

     

    Update: -doesn't work/matter if the container skin is placed within the /portal/[site-System] OR /portal/_default. In other words, doesn't matter if it's a host or site/portal skin.






    Veteran Member





      Try looking at what's being rendered by using your browser's developer tools.
      Joe Craig
      DNN MVP
      Patapsco Research Group
      You are not authorized to post a reply.

      These Forums are dedicated to the 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. 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