Personal tools
You are here: Home Documentation Error References AttributeError: getBodyTagClass
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

AttributeError: getBodyTagClass

Warning: This item is marked as outdated.

This Error Reference applies to: Plone 2.1.x
This Error Reference is intended for: Any audience.

If you customize 'main_template' and get an AttributeError on 'getBodyTagClass' you have probably customized the wrong 'main_template'.

Plone comes with an alternate skin that lays out the main structure of the page without tables. (Getting it to work right in without problems in IE is difficult, which is why it's not the default. But that's another issue.) This skin is just like the default skin, except that it includes the plone_tableless layer at the top. This layer contains a main_template and some other supporting components that will over-ride any existing components from the regular skin of the same name.

If you customize the main_template from the plone_tableless layer, but are still using the default skin, that main_template will want things that come only from the plone_tableless layer, which which are not present in the current skin. This results in, for Plone 2.1, an attribute error as noted above.

If you intend to use the tableless layout, you should switch to the tableless skin (or add the plone_tableless layer to your own skin).

If you did not intend to customize the tableless layout, but found the wrong main_template by accident, remove the customized version and start again from plone_templates/main_template.

A word of advice, though: unless there is a very good reason, avoid customizing the main_template. It will almost certainly have to re-customized on every migration.

by J. Cameron Cooper last modified November 30, 2005 - 23:49
Contributors: J Cameron Cooper
All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by