Keyword

default image for articles without images

  • ravishankar rajendiran
  • ravishankar rajendiran's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 1 week ago #100265 by ravishankar rajendiran
default image for articles without images was created by ravishankar rajendiran
Hi,

 

Just wondering is there any option to set a default image for all the articles in a category if there is no image added for the article. 

 

Since my template purly depends on the images. I dont want to show blank article title alone..

 

 

Thanks,

 

much appreciated 

 

 

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

More
13 years 1 week ago #100266 by william white
Replied by william white on topic default image for articles without images
I dont think there is a setting for that. if you want, you can do a custom override and in the proper view change the isset item image statement with an else and specify a default image

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

  • ravishankar rajendiran
  • ravishankar rajendiran's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 1 week ago #100267 by ravishankar rajendiran
Replied by ravishankar rajendiran on topic default image for articles without images
Thanks William.

Surely basic in k2 and joomla. Can you explain me in depth with proper codes.


Thanks.

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

More
13 years 1 week ago #100268 by william white
Replied by william white on topic default image for articles without images
Please see attached item.php which i renamed to item.help.php

search for "Look here" and see the block of code around line 223

I have not written and tested the code but this is where to start.

another thread that references a similar issue is here

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

More
13 years 1 week ago #100269 by william white
Replied by william white on topic default image for articles without images
sorry, attached here

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

More
11 years 3 months ago #100270 by MrRoyce
Replied by MrRoyce on topic Re: default image for articles without images
I know this is an old topic, but I would also like to have a default image for all articles.

The link to the item.help.php file is broken. It returns 'Restricted Access'.

Is this function in the core of the new versions of K2?

Or can someone reattach the file or fix the link?

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


Powered by Kunena Forum