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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Must have container displayed to have modules in content centered?Must have container displayed to have modules in content centered?
Previous
 
Next
New Post
6/10/2007 5:30 PM
 

I'm playing with a splash page that has a text/HTML module on top with a graphic and some 'coming soon' nonsense.  I then added an account login module, as I plan to have this page set to slash, make the registration private, hide all other pages, etc...

Anyway, I tried 3 times (thought a page was corrupt in the db somehow) adding the page and adding the modules as mentioned above.  Each time, I had to go to design mode to see the login (I guess this is normal? I figured it out finally after having added about 20 login modules to the page and couldn't see while logged in).

Once I logged out to test it, it was aligned left...strange.  So I check the page settings and the container settings...all aligned center. I delete the page after myraid tries at centering the login module, but to no avail.  I finally tried to change the container and this time left it visable...voila...so changed the container back to the test case...voila. I then hid the container again...No dice--aligned left.

Am I doing something wrong, or 1.) is it a DNN 4.5.3 issue with some of the modules? or 2.) a skinning issue? I know my skin will consume the right pane, content, and left pane when placed in the content section with no modules on either side; when I center the text and graphics in the TEXT/HTML module, hide the container, then look perfect.  Therefore, it's almost like the content of the core modules are not assuming the properties of the module...best way I can describe it. 

I put a search input in the center, display the container, looks good...centered.  I remove the container and it aligns to the far left of the page...

Sure, I can drop empty modules in the left and right panes and fix the issue, but I don't have to do this when I display the container, so I punt...

 

 
New Post
6/10/2007 11:47 PM
 

Yes, you need a container to align modules.

The container is a key piece of the functionality that the admin can apply to their modules.  I have a blog post about the short-comings of that design if you care to know more. Containers and Menu Actions in DotNetNuke

The problem with alignment is that the wrapper used for the module when you uncheck "display container",  puts the content in a span tag. Since span is an inline html element it does not have alignment capabilities (it is also an XHTML validation issue).

You could make your own "no container" that does not have any visible presentation, but still allows alignment if you wanted to work around this. The easiest way is to just change the "no container" container to use a DIV instead.  It is located in portals/_default/containers

The problem with the login module is brand new in 4.5.3.  I'm not sure if it is considered a bug, or by design, but I would consider it a bug.  I commented on that here: DNN 4.5.3 Account Login can not be added to page.


DotNetNuke Modules from Snapsis.com
 
New Post
6/11/2007 12:05 AM
 

Oh, one other workaround that I just remembered.  You could also use the Header & Footer fields in module settings to accomplish your alignment. 

In the header put :  <div align="center">

and in the footer put: </div>

Here is another trick along the same idea  Positioning Modules in DotNetNuke

Ok, triva question for anyone who has been around awhile :
What version of DNN was it that the Header and Footer fields were first introduced?

And a little history for those that do not know: 
The Header and The Footer fields where once the only way to do containers.
We've come a long way baby!


DotNetNuke Modules from Snapsis.com
 
New Post
6/11/2007 8:02 AM
 

John Mitchell wrote

You could make your own "no container" that does not have any visible presentation, but still allows alignment if you wanted to work around this. The easiest way is to just change the "no container" container to use a DIV instead.  It is located in portals/_default/containers

The problem with the login module is brand new in 4.5.3.  I'm not sure if it is considered a bug, or by design, but I would consider it a bug.  I commented on that here: DNN 4.5.3 Account Login can not be added to page.

As always, thanks, John.  I just watched a video on changing the span to DIV in one of DNNCreative's videos on xhtml compliance and the validation error that occurs when using the span, too...good to know. I'll give it a shot.

Thanks, sir.

 

 
New Post
6/13/2007 2:07 AM
 
If you're too busy (or lazy) to create your own "hidden" container, you can download one here.
http://www.xd.com.au/downloads.xd?rrcid=39&rrscid=0&rreid=70&rrpid=0&rrepp=10
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Must have container displayed to have modules in content centered?Must have container displayed to have modules in content centered?


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