And doesn't let him upload any picture.
I want the user to choose an image that will already be in the theme folder, and that will indicate what kind of article it is.

How could i go about doing that?

Thanks in advance.

Comments

WilliamB’s picture

Anyone?
That seems like a basic feature.

cfox612’s picture

Have the user select from a dropdown, and depending on what term the choose, the particular image is shown.

WilliamB’s picture

Thanks that would work, but i was looking to allow the user to choose the picture directly, so he can see what he is adding.

Is there any way to do that?

cfox612’s picture

but I'm sure there's someway to do it dynamically with your own php.

hey_germano’s picture

I think it'd be possible with just CSS. Create a CCK field that uses radio buttons for each image choice, then use CSS to hide the text labels, and set your images as the background images for the divs where the labels are.

More info about how you could implement that: http://css-tricks.com/css-image-replacement/

WilliamB’s picture

Hum yeah thanks.
Now i just need to find how i can change the html / css of that specific content type creation form.

hey_germano’s picture

It's kind of tricky, but totally doable. There are some good docs here: http://drupal.org/node/601646

Good luck!

delta458’s picture

How can I create this kind of dropdown list for images? I have Dupal 7.

ryivhnn’s picture

You could use IMCE with your image field to show them what their selected pictures will be.

works at bekandloz | plays at technonaturalist

WilliamB’s picture

Yah but i don't want to allow them to upload picture. Just let them select among already set pictures. So i don't know about adding an image field?

I'm kinda new to editing those form, so if you can point me at some tutorial, it would cool.

ryivhnn’s picture

I'm pretty sure you can use IMCE just as a file manager and disallow the uploading, and give them access to a folder to pick their pictures from. I haven't actually needed to do that myself yet though so don't know for certain, sorry :)

works at bekandloz | plays at technonaturalist

WilliamB’s picture

I'm still struggling with this, if anyone knows a module or has any pointer about this?