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, ...linebreak in ddrmenulinebreak in ddrmenu
Previous
 
Next
New Post
3/1/2013 1:55 AM
 

Hi,

I'm working with the latest version of DNN (7.0.3). Is it possible to put linebreaks in the ddrmenu? I found that it is possible to just put a <br /> tag in the page name, but this shows the <br /> as text in my menu.

 

 
New Post
3/7/2013 1:37 PM
 

The fact that the break shows up is acutally a bug in DNN 6. Is should be resolved in DNN 7.

Yes you can add a break to the menu, but you will have to edit the template of the menu.
Depending on the skin you are using open you skin.ascx file.
Loop for this kind of  line: <dnn:MENU MenuStyle="DNNMega" runat="server"></dnn:MENU>

In most cases there's a folder with the name of the "MenuStyle" value in your skin folder.
Open that folder, and look for the XSLT file that defines the way the menu is rendered.
Add the <br /> where you need it.

In case you want to add the break only for specific pages, you could upgrade to DNN7 (should be fixed, but I didn't check).

 
New Post
3/8/2013 1:12 AM
 
Thank you for your response, but I want to put a
tag in my text of the menu. For example:

Menu item Menu item2 Menu item3

must become

Menu

item

Menu

item2

Menu

item3

If I edit the template for the menu I can add a
but this adds the linebreak at the end of my menu item.
 
New Post
3/8/2013 3:24 AM
 

I was typing 3 hacks to get around this and then realised one of them is actually the solution. (apart from upgrading to DNN7)

Edit your menu's XSLT (In my previous description I supposed you have DDR menu in your skin) and add this:
<span><xsl:value-of select="@text" disable-output-escaping="yes" /></span>
So find any XML line with @text in it and add the output disable output escaping.

If you are not using DDR menu (you cannot find any DDR text in your skin file), I would replace the encoded <br /> with the correct one.

 
New Post
2/10/2014 9:15 AM
 
I am also getting same issue. i need break line in page name. but the above solution for using xslt file used as a template. But my DDR menu is using simpletokens as atemplate. what is the solution for using tokens rather than xslt file? please help..

Thank you.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...linebreak in ddrmenulinebreak in ddrmenu


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