I wish to create a new content type whose input form and display includes the option of including an image.
I do not see how to include the image in the input form.
An alternative would be to adapt the existing CCK image content type, but I want to retain the original.
Is it possible to have a duplicate on a content type?
Many thanks

Comments

matt_harrold’s picture

I'm a bit confused as to what your problem is. You can add a CCK image field as an optional field to any content-type. This will automatically add a file upload widget to the input form and display the image on your node display (if there is an image). You can use the Imagecache module to make alternate sized images (thumbnail previews, etc).

You can also reuse field definitions in multiple content types.

I don't know if I'm helping or confusing you. Cheers anyway.

tipunch’s picture

Matt,
I thank you for your reply. I have been trying to elucidate the issue myself but...
In effect, I can create a new content type, with a number of (CCK) additional fields and enable the image attach function.
However when creating a record of this content type, I cannot upload an image into the record.

If I unfold 'attach image' , I have two options: chosing an existing image (provided after importing images - that works), and 'Upload an image'. So I select one on my local drive, give it a name, and save the record. There is no error message, and no picture displayed in the record (or that I can find in my site directories).

So I have to resort to the 'image' content type, and add all my fields to it, which I really do not want to do, having a separate use for this content type. hence the idea of 'duplicating' the image content type.
I must be missing something. I would dearly like to import into a record as is possible with WordPress, where you can place a picture at the position of the cursor. So simple!
I have checked permissions: and 'import images" and 'upload files" is enabled for authenticated users. I have checked with different browsers... . I have checked the write permission of my server directories... no change.
I have serached the image docs and fora but cannot find the answer.
I will continue my investigation, if you have any ideas, thanks in advance
Regards
Martin

Jeff Burnz’s picture

Try installing TinyMCE editor (WP uses it also) and perhaps give the ICME module a whirl, that will allow you to have your images as you want.

http://drupal.org/project/imce
http://drupal.org/project/tinymce

tipunch’s picture

TinyMCE & ICME installed, appear to work: uploads, inserts image (its in my text box, the html code is there in body, the link is correct, the pic file is in the directory...) but no image is displayed. Not even a image broken link icon. So my problem above stems from something else in Drupal.

Jeff Burnz’s picture

It will be (9/10 chances) your Input Filter, try using the Full HTML filter, or else edit the filter you are using and add the <img> tag to it.

tipunch’s picture

Elemental my dear Watson, Only local images are allowed. tag added to filtered Html and the pics show.
Now I can start building! thanks very much.