Keyword

image in category view now showing

More
9 years 2 months ago #145552 by Brian
image in category view now showing was created by Brian
Hello,
I have a category with all "category view options" set to show. The description, title, rss etc. show but not the image. I saw in the forum to upload through the "image" tab, and that did not change the result either.
I am using Joomla 3.4.1 and k2v 2.6.9.
Thanks,
Brian.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #145565 by Krikor Boghossian
Replied by Krikor Boghossian on topic image in category view now showing
Hello Brian,
Make sure that the category is not inheriting its setting from another category. If that is the case, you need to edit the 'master' category's settings as well.

You can also check to see if it is a template issue. You can browse the page using the default template to see if the image is visible.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
9 years 2 months ago #145572 by Brian
Replied by Brian on topic image in category view now showing
Hello Krikor
looks like it is the template. Picture shows on the protostar template. Is there away around this?
thanks,
Brian.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #145605 by Krikor Boghossian
Replied by Krikor Boghossian on topic image in category view now showing
Yes, you can check K2' s default template and copy the needed code in your template.

The code that generates the image is:
<?php if($this->params->get('catImage') && $this->category->image): ?>
			<!-- Category image -->
			<img alt="<?php echo K2HelperUtilities::cleanHtml($this->category->name); ?>" src="<?php echo $this->category->image; ?>" style="width:<?php echo $this->params->get('catImageWidth'); ?>px; height:auto;" />
			<?php endif; ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum