Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Add Custom HEAD Tags
Previous Previous
 
Next Next
New Post 4/26/2008 6:30 PM
User is offline Tony
29 posts
10th Ranked


Add Custom HEAD Tags 

I see on the home page of DNN that there are several tags in the HEAD section. I see through ADMIN that Title, Description and Keywords are managed by a user adding pages.

How does an Admin or Host add optional meta tags to the skin?

Tony

 
New Post 4/26/2008 8:07 PM
User is offline Will Strohl
1368 posts
www.WillStrohl.com
6th Ranked




Re: Add Custom HEAD Tags 

Things like this work in ASCX skinning.  I think that the skinning engine will still allow this to work with HTML skins as well.  Just put this at the top of your skin file and try it out (on a test installation of course).

<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
 dim objCss As New PlaceHolder
 objCss = Me.Page.FindControl("CSS")
 If Not objCss Is Nothing Then
  objCss.Controls.Add(New LiteralControl("<meta name=""yourtag"" content=""yourcontent"" />"))
 End If
End Sub
</script>

Will LinkedIn profile
DNN Training Videos | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 5/10/2008 12:22 PM
User is offline Tony
29 posts
10th Ranked


Re: Add Custom HEAD Tags 

Can anyone confirm this would be the right way to solve my favicon issue?

<link rel="SHORTCUT ICON" href="/Portals/0/favicon.ico" />

...and if so, should the ico file be in this specific directory?

TIA-Tony

 
New Post 5/11/2008 10:55 AM
User is offline Tom Kraak
360 posts
seablick.com
8th Ranked






Re: Add Custom HEAD Tags 

Additional HEAD tags can be placed into Page Settings > Advanced Settings > Page Header Tags.

You need none of that for your favicon though. Just place favicon.ico into the root of your site and you are done.


Tom Kraak
Seablick Consulting LLC
DNN OpenForce 08: Intro to SEO with DNN
 
New Post 5/11/2008 1:07 PM
User is offline Tony
29 posts
10th Ranked


Re: Add Custom HEAD Tags 

Tom:

Thank you for the response. I've been having issues all week on this. I've just discovered that in IE and Firefox, I get a blue bird ico when using the www, but not if it's left out.

http://www.stjohnrochester.us shows a blue bird (which is my ico file)

http://stjohnrochester.us shows the default DotNetNuke ico file which is NOT in the root (I deleted it)

Looking specifically for the file, http://www.stjohnrochester.us/favicon.ico shows the 16x16 bird. However, Looking specifically for the file, http://stjohnrochester.us/favicon.ico shows the 48x48 default DNN file, which does not exist in the root as an ico file.

Any ideas?

Tony

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Add Custom HEAD Tags
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl
FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP