So I just finished setting up a system as follows but need help on some styling issues. Here's what happens:

1. The client can create a page which I have set fields for in content template.

2. There are two fields, "body" and "summary". Text in the summary field gets placed in a box on the left of my page, text in the body field gets put in a box on the right side of my page.

3. After they submit the page, the data goes where it should but it isn't styled how I want it. I have tried using full html when inserting content in the fields, using the <span> class to try and make it inherit styles from my CSS but it doesn't work. Any ideas?

This is what I have in my template in the body output of content template:

<?php drupal_set_content('content', $node->field_body[0]['view']) ?>
<?php drupal_set_content('left', $node->field_summary[0]['view']) ?>

These only tell the data to be set in either the left region or the content region.

Comments

mooffie’s picture

$node->field_body[0]['view']
but it isn't styled how I want it

The 'view' cell is the gist of the data only. It lacks the enveloping DIV (and the field title) that CCk adds. So instead use $node->content['field_body']['#value'].