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, ...Module Alignment change in 4.6.0Module Alignment change in 4.6.0
Previous
 
Next
New Post
9/24/2007 6:53 PM
 

I was just reading a blog post about a new change in 4.6 and after commenting on it, I thought it may be a good topic for discussion.

http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/1569/Default.aspx

My comments are:

It seems very ambiguous to me to set a class called .DNNAlignright with a property of text-align:left 
In general it is never a good idea to name a CSS selector to indicate the properties that the selectors may (or may not) contain.
In other words it is bad practice in CSS to have a class selector named with a color, or a size, etc.

Since this is an end-user defined value, I think it should take precedence over the skin design and would have been better to use the inline css IMO. The skin design comes first, but the end user will have the last say in how they want the settings to affect their site. 

I hope that adding more and more specific css selectors to default.css will not continue since it is already very bloated. 
----

I'm interested to hear other opinions on this.


DotNetNuke Modules from Snapsis.com
 
New Post
9/25/2007 3:31 AM
 

John, I agree with you on the issue that the end user is always right, even if his site (or his bosses site) looks ugly afterwards.
Furthermore, I don't like having properties in the UI that don't have their intended effect, if you don't want you users to have the ability to set the alignment, then don't give them admin rights or train them properly. Although I think this solution is not optimal, it is an improvement.

The most important thing that I take away from your remarks is, that it is a good idea to have a "call for suggestions" for these kind of changes. The community can than give their opinion before an intended solution is implemented.

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
9/25/2007 5:00 AM
 

Well, I think you can argue for both options, but I think inline CSS would have caused a lot of problems.

It would have changed the align for all RTL websites to left after an upgrade.

Also in a corporate environments it's important to have the possibility to restrain the admins layout options and since there is currently no way to switch the module align setting off, forcing alignment from the skin is the best option IMO.

I agree having .DNNAlignright with a property of text-align:left  seems strange on the other hand a class name like DNNDefaultalign would be very unclear too.

At least it's clear you are overruling the default DNN align.

By the way we did consult some RTL users and this lead to the conclusion that inline styles was "not a good idea"...

I think we should make the "Not Specified" option default by the way.

And default.css, well that's another story.

I agree it's bloated but IMO this was the best solution.

 
New Post
9/25/2007 10:25 AM
 

Peter,
Thanks for your reply. I agree. Since it is open source there should be open discussions about changes.  This one change may be trivial, but if we don't keep open communications then it becomes a closed project.

Tim,

I don't understand the problem with RTL. As Peter pointed out, if an end user sets the alignment on a specific module then it should just align the way they want.

I also don't agree with "restraining an admin's options".  If they don't need the option then don't give it to them. But if you give it to them, and then make it where the CSS can override what they have intentionally set you are going to have some frustrated end users. 

It seems you are looking at this as some sort of global property setting,  but in reality this setting is for specific instances of a module on a page.

The thing that made it jump out in XHTML in a global way is because XHTML was ignoring the alignment all together since it wasn't valid, but all that really needs to be done is to make sure the alignment can be recognized whereever it has been set specifically.

 

 


DotNetNuke Modules from Snapsis.com
 
New Post
9/25/2007 11:17 AM
 

John

The problem is that all existing modules have a default aling set to left (you couldn't set "no aling")
Previously for RTL sites this was solved by overwriting this (globally) using CSS in their skin (where they loose the align functionality)
If we would have introduced inline CSS that would fail and all existing modules would have align left (because inline CSS overrules everything)

By the way, other then default.css being bloated I really don't see any real problem in this solution.
There is no functional change IMO.
If your skinner forced all align to left while you don't want that, force him to change it or hire somebody else.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Module Alignment change in 4.6.0Module Alignment change in 4.6.0


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