Skinning Plone 3.0 - Logged in or not?

Posted on onsdag, februar 04, 2009 @ 22:03:41 by david

Permanent Link

  • retweet this

While working on a skinning project, I took a closer look at what happens when a user is logged in or not.



I noticed that while coding CSS for a site we are building that there were slight differences when a user was logged in or not with the spacing and layout.

 

Of course when you log into Plone CMS, you will see toolbars for "content views" and "content actions", but I noticed that the content gets a <div> with a class of "documentEditable".

 

Well the cool thing here is that I can do different layout options with the content, but I noticed that the structure was not always the same.

The <div> with ID "content" was no longer present on all the pages... AAHHH what a pain.

I was counting on that <div id="content"> to give padding on the sides, but had to switch strategy since it was not present throughout the site :(

 

So the padding went to the old faithful <div> that has an ID "region-content" and a class of "documentContent" because I noticed that this <div> tag was present no matter what or where you are.

NOTE: The border around the content when logged in is from the <div id="region-content" class="documentContent"> tag

 

Lesson learned... thanks again Plone developers.

Share