Keyword

How - Automatic Image in "Item Image" panel

  • L Nathan
  • L Nathan's Avatar Topic Author
  • Offline
  • New Member
More
13 years 7 months ago #94467 by L Nathan
I'd like to know if there's a way to automatically add in the Item Image ( choose image )  an image that is inserted in the content of k2.

 

*Always the first image in K2 Content is the i want to add in the Item Image panel.

 

 

Thanks []'s

 

 

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

More
13 years 7 months ago #94468 by Olivier Karfis
Replied by Olivier Karfis on topic How - Automatic Image in "Item Image" panel
Hi.

 

It's not a built-in K2 functionality and I don't know off-hand if one of the K2 extensions will do that but you might want to check extensions.joomla.org/extensions/extension-specific/k2-exten...

I know some of the LandOfCoder extensions can use an image from the item body as the item image in some of their slideshows/news modules - don't know if that suits your purpose.

 

Let us know if you find an extension that does it.

 

--Olivier

 

Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com

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

  • L Nathan
  • L Nathan's Avatar Topic Author
  • Offline
  • New Member
More
13 years 7 months ago #94469 by L Nathan
Replied by L Nathan on topic How - Automatic Image in "Item Image" panel
I'm using a slideshow module that pick up the content image and put in the left side... But i dont understand very well the code and i cant apply this in the template code.

There's an image in the left side of the news... for this image appears it have to be in the "Item Image" of K2....BUT I want to ADD the image that are in content direct in the "Item Image" tab...I dont care if have to edit the Code... i just need an idea...Thanks again []'s

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

  • L Nathan
  • L Nathan's Avatar Topic Author
  • Offline
  • New Member
More
13 years 7 months ago #94470 by L Nathan
Replied by L Nathan on topic How - Automatic Image in "Item Image" panel
Here are some help... In the template code are this for Image(* For appears i've to add in 'item image tab' ) : 

 

  <span class="catItemImage">    <a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>">     <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:130px;" />    </a>  </span>


 

And for the Module Slide Show are this (*Slide Show take automatically the image from content )

<?php echo $row->mainImage; ?>

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


Powered by Kunena Forum