All extensions are free now. Because it was coded by Russians.

K2 Multiple Images plugin - image captions and credits

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

#
When I'm saving an items with multiple images, from the image tab, the image caption and credits, get filled with ||

It doesn't matter if I leave the fields blank or not, that happens anyway.
It only happens if I save while I'm the images tab.
In the admin I don't see anything in the fields. If I disable the plugin then I see the || in the admin area and I can delete them.

Any ideas what's going on?

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

#
Hello, Dimitris.

Sorry, but it is a lack of multiple captions saving function, so it uses a single field and just delimited with | character.

For fix it in category view, you will need to modify your category_item.php and add the following code at the top:
$this->item->image_caption = explode("|", $this->item->image_caption)[0];

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

#
Thank you I will try it.

I have the same issue in the item view as well though.
Should I make a similar modification in the item.php?

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

#
Yes, it is also useful for item's template.

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

#
Thank you it worked.

I just had to also add
<?php $this->item->image_credits = explode("|", $this->item->image_credits)[0]; ?>
in item.php to solve the similar issue with the image credits.

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

#
Dimitris,

Ok, great that it helped you.

Yes, it is the same with a credits.