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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPICustom NavigationProviderCustom NavigationProvider
Previous
 
Next
New Post
6/16/2006 9:55 PM
 
Howdy!  I am new to coding for DNN.  I wrote a very lightweight (just html and css) navigation provider and spits out the HTML.  I have a css file that I would like to be loaded when the control for the navigationprovider is used.  Please let me know how this can be done.  I would like it to show up in the head.
 
New Post
6/17/2006 8:47 PM
 


      Private ReadOnly Property StyleSheet(ByVal path As String) As System.Web.UI.HtmlControls.HtmlLink
          Get
               Dim _Style As New System.Web.UI.HtmlControls.HtmlLink
               _Style.Href = DotNetNuke.Common.ResolveUrl(path & "jmcmainmenu.css")
               _Style.Attributes.Item("rel") = "stylesheet"
               _Style.Attributes.Item("type") = "text/css"
               Return _Style
          End Get
      End Property

I've tried to insert the returned control into the head control collection and it says i cannot because of the <%= %> literals.  I've also tried to hard code the html into the innerhtml w/ no luck.

 
New Post
6/19/2006 10:03 AM
 

I suppose I am a little confused.  It seems that your goal is to simply apply a custom skin to your dotnetnuke site, but you are asking about writing a custom navigation provider.  The only time you would write one of these is if you are trying to use your own menu control in your site (other than Solpart, DNNMenu, DNNTree, ASP.NET 2.0 Menu).

I'm guessing a review of the DotNetNuke skinning document will clarify a few things...  

Sorry for my confusion...


 
New Post
6/19/2006 12:27 PM
 

I wrote
I wrote a very lightweight (just html and css) navigation provider and spits out the HTML.  I have a css file that I would like to be loaded when the control for the navigationprovider is used.

I have the controls for my NavigationProvider in ~/Providers/NavigationProviders/JMCMenus.  I wrote two from stratch because the DNN 4.0 provided ones did not match the functionality required for the site.  I would like the basic styling and CSS files in the JMCMenus folder.  I know this is possible because SolPart does it somehow.

 
New Post
6/19/2006 12:33 PM
 

I'm also using the control import for both of them like this in the skin's control

<%@ Register TagPrefix="jmc" TagName="SecondaryMenu" Src="~/Providers/NavigationProviders/JMC.Menus/SecondaryMenu.ascx" %>

if that gives you a better indication.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPICustom NavigationProviderCustom NavigationProvider


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