Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...adding Attributes to the <html> tagadding Attributes to the <html> tag
Previous
 
Next
New Post
2/9/2011 12:33 PM
 
Right I copied the wrong code, HTML is not a server side control
 
New Post
2/9/2011 12:47 PM
 
@Nandip, are you suggesting to change default.aspx.vb?
I would not do that as it's a core change...
 
New Post
2/9/2011 12:51 PM
 
@edmedia,

Just out of curiosity, what kind of attributes do you want to add?
 
New Post
2/9/2011 1:17 PM
 
Timo Breumelhof wrote:
@Nandip, are you suggesting to change default.aspx.vb?
I would not do that as it's a core change...

 @TIMO: There may be another way of accomplishing this, But if custom attribute is static across all pages then changes in default.aspx.vb is easy and it can achieved without much care. And if attribute is dynamic. then we should go for another solution which does not affect core. However i will dig more on this, but it may take some times. . . :)



Thanks & Regards,
Nandip Makwana

DotnetExpertGuide
 
New Post
2/9/2011 5:32 PM
 

Timo

Specifically I need to inject the modernizr class [class=no-js] ]into the the <html> tag. It would be really nice if it could be conditional e.g.
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->

I know there is a widget getting around but this seems like adding a function that already seems to be available and I don't want to replicate functionality the may already exist. 

As mentioned in my first post, in the html tag there is <html<%= HtmlAttributeList %>>  which is injecting the language, so, DNN already has a method for injecting in the the HTML tag and there is the xml file for changing the doc type but not sure if that can be used to change the doc type and html tag.


Any ideas on how we could go about doing this?

thanks

Marcel








 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...adding Attributes to the <html> tagadding Attributes to the <html> tag


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out