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, ...My first skin - special menu - image managementMy first skin - special menu - image management
Previous
 
Next
New Post
12/11/2006 11:51 PM
 

Hi all, I am new to DNN. Not sure if I have taken the right approach here.
I am transferring an existing site which is pretty much just a crappy CMS and I am doing the look and feel (ie skinning). The menu is quite interesting as it is comprised of lots of images (not all lined up) and drop downs. I didn't see anything great with the menu modules that would let me do this so I decided to just put the menu in the skin. So my first question, is this a bad design move?

So I've created a control (ascx) for my skin and to seperate the content, created another control just for this funky menu. That second control has a code file as well (this is all .NET 2.0) which currently outputs a hardcoded menu but will potentially output a dynamic menu. The data that gets output is mostly javascript, and in that javascript is html, so you end up having code that looks like this:  var menu = [\"\", \"<img src=\"something.gif\">"];
Because this is in the code behind file, when I upload the skin, it doesn't get "parsed" properly, and the image references aren't recreated properly. So I need a nice safe way to fix this. I could just hardcode the path for the portal number, but if I ever reuse it on a second portal, it won't point to the right location.

By the way, the javascript menu system uses JSCook and even these files aren't working properly. The include path for the javascript doesn't get parsed and changed.

Naturally I could get around this by just dumping all the files one level from root, but then I'd be bypassing the whole skinning concept. I'd like to keep it real!

Any suggestions?

Thanks in advance, Steven

 
New Post
12/13/2006 4:14 PM
 
I don't know exactly what the menu looks like but there is a lot you can do with one of the exising modules.
Solpart or for instance house menu (that's what I use).
Read this post.
The idea is you use the page icon to display a menu with images, there are even more possibilites by using css change  / move the images.
If you want to define the path to the skin folder you should use <% =skinpath %> in your ascx file.
And you might read John Mitchell's blog about including "javascript links" in the header of DNN.

Hope this help you a bit further.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...My first skin - special menu - image managementMy first skin - special menu - image management


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