You need to Register for free and Login to post a message in the forum.

Forum

Subject:  and
Prev Next
You are not authorized to post a reply.

Author Messages
geichholzer
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:4

30 Apr 2008 11:56 AM  
Can anyone tell me what I have to do to edit what renders in the "head"and "link" tags in the html?
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2371


30 Apr 2008 7:24 PM  
Take a look at the DNNCreative Skinning Toolkit.

Joe Craig
DNN Creative Support
Subscribe to the website
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

01 May 2008 4:49 AM  
If you need more info let us know, is there something in particular you wish to achieve?

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
geichholzer
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:4

01 May 2008 9:57 AM  
what I want to do is edit what stylesheets are being linked to in the head tags of the final rendered html.
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

02 May 2008 2:46 AM  
There isn't a method for doing this without editing core code.

But, you can call up individual css stylesheets based on the name of the skin, for instance, your DotNetNuke portal currently calls in:

default.css, skin.css, container.css

If you create a skin named mygreenskin.htm and include a css file named mygreenskin.css, it will call up the css code, so you will then have:

default.css, skin.css, mygreenskin.css, container.css

If that doesn't give you enough control then in the root of your DotNetNuke installation files, open default.aspx.vb

In there you will find the code for calling in various css styles (press ctrl+F and search for 'css') you will find the section of code that calls in the stylesheets.

Bear in mind, if you do edit this,  you will need to transfer that code when you do an upgrade of DotNetNuke.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
geichholzer
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:4

02 May 2008 8:08 AM  
Thanks
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2371


02 May 2008 8:28 PM  
If you want to change the styles for just a single module, you can also use the "header" and "footer" that you'll find in the advanced module settings. The idea is to insert < div class="myCssClass" > before the module and < /div > after the module.

Then you can style the head, link, and others for myCssClass. You could put those styles in the skin.css file, or you could use a < style > and < /style > in the header for the module.

You can use the Web Developer's Toolbar that Lee has demonstrated in several tutorials to see how all of this can work.

Joe Craig
DNN Creative Support
Subscribe to the website
You are not authorized to post a reply.



ActiveForums 3.7

Latest Forum Posts

Restricting DateEditControl till date by coder247
Hi All,   We are using the DateEditControl (for obvious reasons!!) in our application. But we want t...
RE: Email Set UP per Portal by jncraig
I think that the answer depends on how email is configured at your host. You'll probably have to co...
RE: skin/container error load by jncraig
I would suggest checking permissions for directories. Does this occur only when you upload a skin...
RE: Add New Profile Properties by jncraig
Hmmm ... I don't have an answer. Does anyone else?
RE: No Access for me too by ristori
it is ok now. Thanks for this action.
skin/container error load by islandman
Has anyone else run across this error when loading skins or containers from site settings?I am using...
Email Set UP per Portal by islandman
How do I set up a unique email address per domain name off 1 hosting environment. for example...m...
RE: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
Best DNN portal ever! by derpir
I have been a subscriber since august 2008, and DNNCreative.com is simply the best DNN Portal, their...
RE: skinning trouble by derpir
Hello Yes could you be so kind and take a look att the htm-file and css-file.I would be very gratef...
Search function is not working by kishorpawar
I am using Seach module in my project but not working, i have set   host setting alsoHost --> Schedu...
RE: backend is changing from sql2005 to sql2008 by leesykes
hello,There should not be any code changes needed, but you'll need to make sure that SQL 2008 upgrad...
RE: skinning trouble by leesykes
Hello,I would need to see your code to help you with this one, you can zip up your files and attach ...
RE: Installing DotNetNuke 4.9.00 on VWD 2005 w/ SQL server 2008 by leesykes
I have run a test with SQL Server 2008 express and DotNetNuke installed in exactly the the same way ...
RE: Issue 39 Interview by leesykes
thanks Bill, glad it was useful, we will have a think about the best way to approach this,Thanks,
RE: Issue 39 Authentication by leesykes
yes I have a live site in 4.9.0 at it seems stable as well.
AppTheory
RSS Feeds