DNN Forums

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

Which standard to follow when creating a new Theme?

 6 Replies
 2 Subscribed to this topic
 16 Subscribed to this forum
Sort:
Author
Messages
New Around Here Send Private Message
Posts: 15
New Around Here

Hi

We're looking to a create a new skin. In order to avoid redoing the work when DNN goes .NET Core, is it recommended to build the skin in pure HTML and use only Object tags instead of creating in full ASCX ?  

Thank you



Revindex is your ecommerce expert. We have been helping thousand of DNN customers setup shops online since 2007.
Veteran Member Send Private Message
Posts: 1245
Veteran Member
I wouldn't be terribly worried about something that's a few years away. But, if I were building a new skin, I'd use nvQuickTheme (https://github.com/nvisionative/nvQuickTheme) to do it. (With a great shout out to David Poindexter and the team at nvisionative.)
New Around Here Send Private Message
Posts: 15
New Around Here

I understand but we still prefer to go with the least common denominator at the expense of more features if it can avoid a large rewrite. A few years from now is not nearly long enough if you think about how busy people get very quickly. 

I think it would benefit everyone if DNN could publish a list of current recommended development standards (it's OK to be vaguely right than precisely wrong). The development is getting fragmented (not DNN's fault), but it would benefit to stay on a few sure paths to keep development efficient, simplify training/hiring of developers, and stability for long term support.

Bootstrap HTML + Objects

...the same for module development. What are current standard?



Revindex is your ecommerce expert. We have been helping thousand of DNN customers setup shops online since 2007.
Veteran Member Send Private Message
Posts: 1245
Veteran Member
Well, short of "DNN" publishing standards, I think that dnndocs.com, community.dnn.com, and a number of examples such as nvQuickSite and Christoc's module templates, Will Strohl's sample extensions, etc. are a decent replacement. And you'll find blog posts and other things regarding best practices are around and about. DNN is an open-source project and depends entirely on the the work of volunteers who contribute to the project. These forums help to fill in the blanks, too. And, to the extent that each of us learn things, documenting them in forum posts, blog posts, or even additions to the dnndocs project (again another open-source thing) we move the process along.
Veteran Member Send Private Message
Posts: 1184
Veteran Member
Posted By Stephen on 24 Apr 2020 11:50 AM

Hi

We're looking to a create a new skin. In order to avoid redoing the work when DNN goes .NET Core, is it recommended to build the skin in pure HTML and use only Object tags instead of creating in full ASCX ?  

Thank you

TBH I don't think it makes a big difference. I'm guessing the new Theme format will probably be Razor based and if that's true none of the existing Theme formats would help you much. But converting should not be very difficult either (unless you use a lot of custom code in your ASCX). I don't see much value in the HTML format TBH. For most Themes  95% of the your work is in the CSS, not the ascx. The CSS needed will probably not change much even if the skinning engine changes. I would try to use generic CSS classes as much as possible contrary to the current DNN classes as some of them will probably disappear or change. If you use Less of SCSS, that makes it way easier to adapt to a new skinning engine int a later stage.

HTH Timo

 

Veteran Member Send Private Message
Posts: 1184
Veteran Member
Posted By Stephen on 24 Apr 2020 02:28 PM

I understand but we still prefer to go with the least common denominator at the expense of more features if it can avoid a large rewrite. A few years from now is not nearly long enough if you think about how busy people get very quickly. 

I think it would benefit everyone if DNN could publish a list of current recommended development standards (it's OK to be vaguely right than precisely wrong). The development is getting fragmented (not DNN's fault), but it would benefit to stay on a few sure paths to keep development efficient, simplify training/hiring of developers, and stability for long term support.

Bootstrap HTML + Objects

...the same for module development. What are current standard?

Actually DNN has never really limited you to use any CSS Framework you wanted apart for some styling in default.css that could interfear. (whichs are quite easy to reset). Personally I beleive that DNN should not focus on a specific CSS framework for Themes and I even think there als is no need to do that. I built most Themes in BS4 but for some clients I do all CSS from scratch or use another framework because it's a better fit. I think it's important that's still possible in future versions of DNN.

 

New Around Here Send Private Message
Posts: 15
New Around Here

In a perfect world, it's nice to have a life full of choices. In practice, however, too many choices makes it hard for development to work together. For example, Bootstrap is a great CSS framework and has dependency on jQuery. The skin may specify the CSS, but the jQuery version comes from the platform. Module developers program their code based on the agreed upon CSS and JS that will appear on the page. If we are all choosing different frameworks as we please, it would be incredibly difficult to have any stable development.

Razor is a great use for future skin development. But for now, does anyone know if HTML + Objects for skin development will still be supported when DNN move to .NET Core? 



Revindex is your ecommerce expert. We have been helping thousand of DNN customers setup shops online since 2007.

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