Products

Solutions

Resources

Partners

Community

About

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, ...How can one force a line break for long Module names?How can one force a line break for long Module names?
Previous
 
Next
New Post
5/23/2018 3:37 PM
 

How can one force a line break for long Module names?

Here is how I am doing it now.

I opened this file...

C:\inetpub\wwwroot\dotnetnuke\admin\ControlPanel\ControlBar.css

...I made a backup copy of it as-is just in case...

...and then at the bottom of the file I added this hack...

/* NOTE. mfk. 2018-05-23. Added. This will force line wrap for long names in the Add New Module tray. */

#ControlBar_Module_AddNewModule .ControlBar_ModuleDiv span
{
word-wrap: break-word !important;
}

...and now when I choose > Modules, > Add New Module, > My Modules

...my custom Modules names (which are quite long and were thereby truncated by the old CSS) are wrapped by force using this new CSS....

...and it works, but is there a better way?

Please advise.

BTW, I am using DotNetNuke 8.0.3 and cannot upgrade due to my client.

Thanks.

-- Mark Kamoski
 
New Post
5/24/2018 7:50 AM
 
Mark Kamoski wrote:

How can one force a line break for long Module names?

Here is how I am doing it now.

I opened this file...

C:\inetpub\wwwroot\dotnetnuke\admin\ControlPanel\ControlBar.css

...I made a backup copy of it as-is just in case...

...and then at the bottom of the file I added this hack...

/* NOTE. mfk. 2018-05-23. Added. This will force line wrap for long names in the Add New Module tray. */

#ControlBar_Module_AddNewModule .ControlBar_ModuleDiv span
{
word-wrap: break-word !important;
}

...and now when I choose > Modules, > Add New Module, > My Modules

...my custom Modules names (which are quite long and were thereby truncated by the old CSS) are wrapped by force using this new CSS....

...and it works, but is there a better way?

Please advise.

BTW, I am using DotNetNuke 8.0.3 and cannot upgrade due to my client.

Thanks.

-- Mark Kamoski

 The problem with that approach is that you are changing the DNN core.
So on the next DNN upgrade you would have to make the same change.
It's better to add your css to either the skin package (skin.css most likely) or per portal to the portals CSS (site settings or Portal.css)

 
New Post
5/24/2018 9:57 AM
 
Timo Breumelhof wrote:
It's better to add your css to either the skin package (skin.css most likely) or per portal to the portals CSS (site settings or Portal.css)


Timo,

Ah, you are right, I have moved it to Portal.css and it is now fine.

Thanks.

-- Mark Kamoski
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How can one force a line break for long Module names?How can one force a line break for long Module names?


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