Community & Support

Yet another image handling question

I've read the guide in the handbook to "pick an image handling module".
Unfortunately, it's not quite finished, and I left still somewhat confused.
I would thus like to ask for a recommendation.

I need
A) To place about 20 pictures within nodes, (pages and stories) for decorating some text and
B) Have a few image galleries which will be updated by a single person which can be "educated".
All the galleries combined will be in the "a couple of thousands" range.
I would be nice if the pictures could be inserted directly into the page/story on creation.

I would greatly appreciate suggestions on what modules you use :)

Comments

Hi, A) This can be

Hi,

A) This can be accomplished using Filefield, Imagefield, Imagecache, CCK (I may have missed some required modules but you'll be warned when installing them about any missing ones)
Filefield and Imagefield are required to upload the images
Imagecache is needed to sort sizes and cropping out if required.
CCK is needed to create the custom content types if needed below.
Sidenote - with imagecache and the other modules you can use additional modules to create slideshows.

B) Can be done a few different ways.

B1) Create new content types that are only editable by certain roles
B2) Use views to collate an image type node and have it display in grid view.

I'd probably go with option 1 because that way you don't have a load of superfluous nodes lying about.

"I would be nice if the pictures could be inserted directly into the page/story on creation." - On a tangent do you mean inserted mid text? If so you could look at the wyswig module, it has the ability (with some tweaking, I forget whether it's standard or not) to insert images directly into text, I use tinymce with it.

Hope that helps.

Thanks digital :)

Thanks a lot for helping a newb out :)

A) I've installed the modules. I've created a new content type that I've called image. I think i've configured it correctly, and I've managed to upload 2 images that are now present as nodes.
The question is now, how do I get them inside for example a story or a page? Or do I need to create a new content type that can hold both images and text?
An example on what I'd like to accomplish would be

[Logo-image] [Link to other site]
Text that describes above site

B) Gonna have a longer look on this later :) Thanks a lot for pointing out the direction.

No problem, everyone starts

No problem, everyone starts out somewhere.

If you went with option A you now need to theme it. This is fairly easy once you read through theme documentation for your chosen engine. It can be a bit daunting at first but with some practice it becomes easier.

I'd also try out what I said at the end about the wysiwyg module it may be a lot easier to implement.

I did add an image component

I did add an image component to the already existing page/story content types, and that worked as expected, the question is then how I can achieve better control of where the images are placed. You mention a WYSIWYG, is that the only way to do it? I'm trying to understand the process behind better.

Which modules are you using?

Do you mean that you installed Image module or another module that handles images such as imagefield?

Image module creates a new node type ("image") with just one image per node. If you check the forums, most people regard this as lacking flexibility and some talk about the module being deprecated.

Imagefield + CCK allows you to add image fields to a content type. If you wanted, you could create a new content type (e.g. "images") add an Imagefield that allows multiple values, and add any other CCK fields that you want (e.g. date, location, etc.).

The following example shows body text followed by Imagefield images. The images have been cropped and resized using Imagecache. The photos have been put into two columns using css.

http://inarak.com/photos/20090403/26

Imagefield does not allow the user to chose where on the node the image is placed. If you need to do this, you'll need to upload the image(s) as file attachments (comes with core) or by using a contributed module such as IMCE and then position the image in the body text using html + css. If you don't like editing html + css directly, you can try using a WYSIWYG editor such as FCKEDIT or one of the more simple alternatives. A WYSIWYG editor is not required, it just makes the coding easier for novice (and some intermediate) users.

>Image module creates a new

>Image module creates a new node type ("image") with just one image per node. If you check the forums, most people regard this as lacking flexibility and some talk about the module being deprecated.
I don't think this is the one I've used. You are referring to: http://drupal.org/project/modules?text=image ?

>Imagefield + CCK allows you to add image fields to a content type. If you wanted, you could create a new content type (e.g. "images") add an Imagefield that allows multiple values, and add any other CCK fields that you want (e.g. date, location, etc.).
Yes, I have CCK + Imagefield. I did manage to add a image-field to the regular pages/stories, and insert an image. It works great so far. However, I had really hoped for more flexibility, such as arbitrary placing of images within text, as I can do with html/css.

I'm quite comfortable with html/css, so maybe I should just go with that.
I've understood that I could just scp the images to files/ and refer directly to them with Only local images are allowed.. Perhaps that is just the easiest and thus "best" way?
For the future, is there anything I should keep in mind, that will be "future safe". Should the images still be nodes, or something similar, so that they may for example be tagged?

nobody click here