CCK - Magazine article strategy?

AnotherHowie - March 30, 2008 - 17:50

I've been using Drupal for my site for the last year or so with nothing but the standard Story node and a 'type' field so I can make Views of particular things - there are only really 3 or 4 types of object on my site: blog post, software release, long-form article and gallery image.

I've been looking recently at a redesign, and as part of that, moving to a more structured architecture using CCK.

So I have an Article content type now, and it has a teaser, body, lead image (as imagefield, also used as a thumbnail in the teaser), and a multiple-select for additional images, also imagefield. Here's the part I am trying to understand:

How do I refer to those additional images in a painless way inside the body copy?

At the moment, I have a image.module gallery that I upload the images for an article to, and then use RepTags to insert {IMAGE:333} type tags in my body text. Is there a better/built-in way to do this kind of thing? When I search for things relating to CCK and newspapers or magazines, I get a lot of very-strict workflow related stuff. I'm a bit more sloppy, but I'd like to avoid having the HTML for my images in every article if I can. I'd also like to have a caption for each image in the article, but I can't see how to 'theme' types from CCK.

Am I going about this all wrong? should I be using node references and an extra node for each of the images? What does anyone else do?

Cheers,

Howie

It depends on your goal. If

nevets - March 30, 2008 - 18:08

It depends on your goal. If you create a CCK type as described then add content using your new content type they should just display. I would recommend using the image cache module as it gives you more control over the image size displayed.

Well, Yes and no. They *do*

AnotherHowie - March 30, 2008 - 19:20

Well, Yes and no.

They *do* display, but all piled up at the bottom. I can add a Content Template and move them around relative to the main content, but what I actually want is the extra images in content-selectable places in the article. Typically they are howtos, so I need the screenshots/diagrams to appear near the relevant text as floats. That position in specific to that article, which is why I was asking about things like reptags.

Already onto the imagecache module for my teaser thumbnails - very nice :-)

--
Map your network with live traffic data: http://www.network-weathermap.com/

I think you might want to

nevets - March 31, 2008 - 04:47

I think you might want to check out the image assist module.

 
 

Drupal is a registered trademark of Dries Buytaert.