Div wrapper for the body of a node?

Events happening in the community are now at Drupal community events on www.drupal.org.
arkepp's picture

I apologize in advance if this is documented, but I was not able to find anything while searching. I use Drupal 5.7 and every field output by CCK appears to be wrapped by a div with sensible classes, except the body field. I believe I need a div around the body of the node to properly align the text relative to other fields. I thought I would be able to fix this in function content_view() in content.module, but apparently not(?). Can anyone point me in the right direction?

Comments

You can use as

romand's picture

You can use as wrapper:

.node [.node-type] [.content] {
position:relative;
...
...
}

bodywrapper module

Gabriel R.'s picture

I had the same problem and created the bodywrapper.module http://drupal.org/node/314844

1) Thanks. 2) Publish as contributed module?

porg's picture

Dear Gabriel! Thanks! Your module perfectly solved my support inquiry: $content holds node body as HTML elements in loose sequence not wrapped within DIV container (to easily separate ImageField DIV)

I am asking you for only one further minor favor: Could you publish this module into the official contributed section at http://drupal.org/project/* preferential under your already chosen name "bodywrapper"?

This would improve the situation for people who:
a) Search for a problem solution within the Drupal module section, and not through external search engines.
b) Me/others could easily/reliably post a Drupal internal link to related issues.
c) People which install through automated means such as Plugin Manager.

I already noted down about 5 related issues, and as soon as http://drupal.org/project/bodywrapper would become available, I would love to post into these threads (including my own) to help the subscribed people and future troubleshooters.

Content Construction Kit (CCK)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week