Keyword

Automatic Images

  • strummsteel
  • strummsteel's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 7 months ago #78271 by strummsteel
Automatic Images was created by strummsteel
I'm looking for a way to automatically attach an image to an article.
I have setup a custom field "sources' which will be news sources and I want to attach automatically an image into an article corresponding to the "sources" entry.

Example source: Wall Street Journal >> auto insert Wall Street Journal Image into the article intro text.

It doesn't need to get the image online, i have a stack of images that i can put in the images folder. But any system would be great.

Thanks in advance.

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #78272 by troponin
Replied by troponin on topic Automatic Images
I haven't tried it but imho you can solve this by using the Category Image. Replace the Code for the item Image in your k2 Template File with the source of category Image.

Please Log in or Create an account to join the conversation.

  • strummsteel
  • strummsteel's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 7 months ago #78273 by strummsteel
Replied by strummsteel on topic Automatic Images
Thanks for this tip, any other ideas?

Please Log in or Create an account to join the conversation.

  • strummsteel
  • strummsteel's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 7 months ago #78274 by strummsteel
Replied by strummsteel on topic Automatic Images
I tried this, it seems to work, one problem is that, I would need to use a lot of categories, if i use this system.

Anyone? please help.

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #78275 by fresco
Replied by fresco on topic Automatic Images
Nice would be a setting/option to show the category's image when an image is not assigned to the article...

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #78276 by Janusz Siepak
Replied by Janusz Siepak on topic Automatic Images
Could you say exactly what has to be change in the code to show category images next to introtext and also full open item?

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #78277 by BBC
Replied by BBC on topic Automatic Images
Coul´d you please explain it some other way ?

I am not sure i get it what you want.

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #78278 by Janusz Siepak
Replied by Janusz Siepak on topic Automatic Images
Sure,

 

I would like to list articles from different categories on one page (just introtext + image). Image should be always loaded from category image, not item image.

 

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #78279 by BBC
Replied by BBC on topic Automatic Images
I asked author of the topic.

 

First thing a think is template override and hard code URL of image in category_item.php.

 

But you need Items from mixed Categories.

 

If you hard code URL in other categories override,  it would reflect at some other parts of website. And this is probably something you don´t want.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum