I'm creating a site for a magazine (my first Drupal site) and wanted to at least partially re-create some of the look of the printed version.

So in an article, there may be quotes, facts or info boxes which are part of the article but not part of the main body text.

How can I setup Drupal so that when an author creates an article they can add a number of quotes (for example) which are then output with appropriate CSS tags so they can be styled as quotes (with background images etc.) and either pushed out to a sidebar or inline?

I can see that I could add a text field called quotes and set the number of that field to unlimited so multiple quotes could be added, which almost solves the problem, except that the output can't have custom CSS tags on it, or be inserted into the body's flow.

A wider issue is I would like to have one or more fields within the content type which get pushed into a side bar (like info boxes for example), i.e. sidebar content directly related to the main content.

I think I could do this with panels, but I think that's too complicated for the authors to do for every article they create.

Help!

Thanks :-)

Comments

MMachnik’s picture

Are you using a WYSIWYG for the body ( http://drupal.org/project/wysiwyg )? If so, the author can insert as many BLOCKQUOTEs as they like into the body inline and either they can use custom CSS or you can define styles to display the quotes as you like. A sidebar effect can be created as well within the WYSIWYG by adding DIVs and using custom styles or inline CSS. That would seem to be the easiest way to handle this.

If you want to take other fields within the node and have their content appear in a sidebar like area, you probably need to create a custom node template and accompanying CSS, and define DIVs within the template that will contain the various fields' data. Authors will not need to deal with anything other than entering the data into the node form. The template will take care of displaying it in the right place for every node of that type.

Hope this helps!