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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Using images as menuUsing images as menu
Previous
 
Next
New Post
1/6/2014 4:00 AM
 

I'm trying to change how my menu looks. I want to use images instead of text. Any way to do this? The 'Icon' and 'Large Icon' in the Page Settings page doesn't seem to do anything. 

 
New Post
1/6/2014 11:54 AM
 
the icon is used in menus that support icons beside the page name, and the largeicon is used when the console module is shown e.g. click the admin or host pages and you'll see the console lists. I'm assuming you're using the 7.2.0 release in which case it's menu does not show the icons (showing icons went out of style a little so our last 3 skins have not shown them). You can update the menu to so if you want e.g. edit Portals\_default\Skins\Gravity\Simple\simpletokens.txt to use the icon token (http://www.dnnsoftware.com/wiki/Page/...) . Alternatively create your own menu (see http://www.dnnsoftware.com/wiki/page/... - I find razor the easiest and most powerful option). Note: you may find something appropriate at http://dnnddrmenutemplates.codeplex.com/

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/6/2014 9:49 PM
 
<ul id="dnn_pnav">
[*>NODE]
</ul>
[>NODE]
<li>
[?ENABLED]
<a 

href="[=URL]" target="[=TARGET]">[=TEXT]</a>
[?ELSE]
<span>

[=TEXT]</span>
[/?]
[?NODE]
   <ul>
   [*>NODE]
   </ul>


[/?]
</li>
[/>]

<script type="text/javascript">
(function($){
$().ready

(function(){
$("#dnn_pnav > li > ul li").mouseover(function(e){


var subMenu = $(">ul", $(this));
if

(subMenu.length > 0){
var offset = subMenu.offset

();
var rightEage = offset.left + 

subMenu.outerWidth();
if(rightEage > 

$(window).width()){
subMenu.css("left", 

(parseInt(subMenu.css("left")) - (subMenu.outerWidth() + $(this).width())) + 

"px");
}
}



e.stopPropagation();
});
});
})(jQuery);
</script>

here is the simpletoken.txt file.

Which part do i edit to change the text to image? I tried to edit the [text] part to [largeimage] but it just display the url of the image and when I clicked on it, it directs me to the image. It doesn't change the menu to use images

 
New Post
1/7/2014 9:11 AM
 
you don't change, you add (i.e., you want both text and an image in the menu) - just add the [ICON] beside the text

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Using images as menuUsing images as menu


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