OK, I've failed in trying to get drupal to allow users to insert a 90x90 image from IMCE and automatically float it top-right of the node. The problems were with themeing/positioning the image, and forcing images bigger than 90x90 to be resized.

Having given up on that, I'm looking for an alternative, and 'taxonomy image' caught my eye.

1) If users create a 'story' node and tag it with 'news', can I make a standard icon for 'news' (a 90x90 icon that I've previously uploaded) always appear in the top right corner of those nodes?

2) If a story was tagged 'sport', could I make a sport icon appear in the top-right of that node? What would happen if a story was tagged with both 'news' and 'sport'?

3) Also, would these icons appear in my news feeds? (Yes, I want them to)

4) Further, would this require *any* php templating. Because I've tried that and it is far too difficult; I read hundreds of documents about it when I was trying to get a cck image float top-right, and I can honestly say that I understood NOTHING - not one single line of script. So if php templating is necessary, beyond copy/pasting one line of standard script, this module would be USELESS to me.

Thanks.

Comments

e_log’s picture

1) yes, u can use "Alter taxonomy links" and all tags will show the appropriate picture (use the "Taxonomy Hide" module to hide tags u don't want to show) than use css to make the taxonomy tags float:right.
I had some problems with Taxonomy Hide and Taxonomy Image so i used "Display taxonomy images on tagged nodes" to show the taxonomy images in addition to the taxonomy tags (i edited the taxonomy tags away in my node.tpl.php, so i only have the images.)

2) both, see 1)

3) don't know

4) no, see 1)

-Anti-’s picture

Oh. So you're saying that the way this works, instead of a list of tags like:

tagged: news office secondary

I'd see three images rather than the list of tags?

That's not what I hoped. I thought it would work differently. Thanks anyway.

What I really need then is a module with which you can assign an image to a content type.
And the image is shown top-left of the teaser/summary.

nancydru’s picture

Status: Active » Fixed

What I really need then is a module with which you can assign an image to a content type.

That's not what you said in the original post. What you asked for there is possible, as e_log said - and see the demonstration site for exactly that type of implementation.

-Anti-’s picture

> That's not what you said in the original post

Sorry for the confusion.
I first described what I needed in terms of using taxonomy to do it.
Having found out what the module does, I stated my need in terms of content type.

I thought this module would look at the tags in a node: news sport secondary, and without touching the tag listing itself, allow you to put an image somewhere in the body representing ONE of those terms, perhaps by a weighting system, or using an image for the vocabulary rather than each item.

But as explained, this module simply displays an image *instead of* each tag.

Cheers.

nancydru’s picture

No, it will show the tags and the images. But it will show all the terms, not just one.

nancydru’s picture

There is a theme template in #285021: Image Display to the left of Post title?. It will make the first image (which would be controlled by weight) a "title" image. There are also screen shots there.

-Anti-’s picture

> No, it will show the tags and the images. But it will show all the terms, not just one.

So if I tag a node with seven terms I'd get seven images? Where would they all appear exactly?

> There is a theme template in #285021: Image Display to the left of Post title?. It will make the first image (which would be controlled by weight) a "title" image. There are also screen shots there.

Very helpful of you - thanks. But unfortunately I understand none of the php - not one single line. This is the real downside of drupal - in order to protect my users from knowing php, html and css, I have to expose myself to it instead. In the other CMS I've used, *I've* also been protected from knowing php. I don't have the first scooby-doo what to do with the code you posted in that thread, or how it will assist the problem I posted here.

Thanks for your help, but this module is just far too technical for me. I guess it doesn't really do what I'm looking for in the first instance - an icon placed at the start of each node, which has an automatic 1:1 relationship with the main vocabulary chosen by the user. EG:

news vocab = news icon
sport vocab = sport icon
office vocab = office icon
primary dept vocab = primary icon
secondary dept vocab = secondary icon

And for terms chosen:
news => excursions term = news icon
sport => volleyball term = sport icon
office => bulletin term = office icon
primary => y6 term = primary icon
secondary => maths term = secondary icon

Also, I've changed my mind - I'd like the icon to be included when viewing the teaser and full article, but NOT in feeds (due to researching the difficulties that feeds have with partial absolute paths like: /sites/default/files/image01.jpg). I think this requires installing the 'clean feed' module.

Thanks for any further advice.

nancydru’s picture

Yes, you would get 7 images, if they are all assigned. They would be in the same place the terms show up now (it varies depending on themes).

I think that template will do what you want. Go into your theme directory and make a copy of "node.tpl.php". Replace all the code in the original with all of the code in that example. No PHP knowledge needed. If it breaks anything you can rename the copy back to the original.

I'm not sure how to include an image in a feed if it doesn't happen automatically. However, I see absolute paths for the images on my sites.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.