By WilliamB on
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.
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
Anyone? That seems like a
Anyone?
That seems like a basic feature.
Seems like you could use taxonomy for that
Have the user select from a dropdown, and depending on what term the choose, the particular image is shown.
Thanks that would work, but i
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?
I can't think of anything offhand
but I'm sure there's someway to do it dynamically with your own php.
CSS image replacement
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/
Hum yeah thanks. Now i just
Hum yeah thanks.
Now i just need to find how i can change the html / css of that specific content type creation form.
theming the CCK input form
It's kind of tricky, but totally doable. There are some good docs here: http://drupal.org/node/601646
Good luck!
how
How can I create this kind of dropdown list for images? I have Dupal 7.
-=[o]=-
You could use IMCE with your image field to show them what their selected pictures will be.
works at bekandloz | plays at technonaturalist
Yah but i don't want to allow
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.
-=[o]=-
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
I'm still struggling with
I'm still struggling with this, if anyone knows a module or has any pointer about this?