Keyword

Tool for importing / exporting items to / from K2

  • Individual IT
  • Individual IT's Avatar Topic Author
  • Offline
  • Elite Member
  • Developer of the K2 Import / Export Tool
More
8 years 8 months ago #146425 by Individual IT
Replied by Individual IT on topic Tool for importing / exporting items to / from K2
Hi Victor.
Multiple categories or multiple extra field groups are not possible with the K2 Import/Export extension.
How do you plugins manage the multiple categories?

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

More
8 years 8 months ago #146431 by Victor
Hi,
I'm using these following plugins:
1. For multiple extra fields: www.joomreem.com/multiple-extra-fields-groups-mefg-for-k2.html
2. For multiple categories: www.netpin.gr/extensions/item/1-k2-additonal-categories

Hope you can add some support for these plugins.

Thanks.

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

More
8 years 7 months ago #147146 by gr8
Hi,

I have existing K2 items created but need to import over the top of them based on new custom field values. The only real field that i can use that is unique to each item is the 'alias' field.

Title will not work because some items have the exact same title with only the alias to separate them.

How can re-import a csv using your extension and only target those items with a specific alias.

Please advise.

Thanks,
Ryan.

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

  • Individual IT
  • Individual IT's Avatar Topic Author
  • Offline
  • Elite Member
  • Developer of the K2 Import / Export Tool
More
8 years 7 months ago #147293 by Individual IT
Replied by Individual IT on topic Tool for importing / exporting items to / from K2
hi Ryan,
can you use the "ID" to overwrite? That one should not change

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

More
8 years 6 months ago #148167 by Peer
Replied by Peer on topic SEO images for k2
Hi,

i followed the instructions from gavick.com mentioned in the following post to use the item alias within the image name.
www.gavick.com/forums/general-discussion/seo-k2-image-18208

I changed all recent files according to the following instructions:
$handle->file_new_name_body = $row->alias.$row->id;
.md5("Image".$row->id).  change to .$row->alias.$row->id.
md5("Image".$current->id) change to $current->alias.$current->id;
.md5("Image".$item->id).  change to .$item->alias.$item->id.
.md5("Image".$news_id).  change to .$news_alias.$news_id.
Code works for all manually uploaded images.

Actually I'm trying to change your "k2import.php" which is the only script I found to handle the images.
on line 865: $handle->file_new_name_body = md5("Image".$this->_k2_item_id);
on line 1138: $image_name = $image_savepath . md5("Image".$items[$item_count]->id) . ".jpg";

Everything I do, I dont get the alias placed within the imagename. May you give me a hint how to appropriate change the code for my needs?

many thanks in advance

Peer

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

  • Individual IT
  • Individual IT's Avatar Topic Author
  • Offline
  • Elite Member
  • Developer of the K2 Import / Export Tool
More
8 years 6 months ago #148268 by Individual IT
Replied by Individual IT on topic SEO images for k2
That would be a bigger change, because in line 865 you have no access to the alias.
The alias is created with the code starting from line 89
you would have to save that information e.g. in a variable $this->alias and use it in the saveImage() method

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

More
8 years 5 months ago #149282 by Madeleine McMullin
Replied by Madeleine McMullin on topic Tool for importing / exporting items to / from K2
I've tried using the import tool - v2.3 and have managed to upload the items but not the images. I've even downloaded libreoffice specially as I was having so many difficulties. I have the images in a directory on the server and initially managed to upload some, although I needed to open the files to see the images. I've exported the category and then reimported to make sure that the dates are correct and I get the message that the image is not present in the specified location. I've tried uploading them as a zip to import but I just get a timeout when it is trying to import the file as there are a lot of them. Can you help please?

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

  • Individual IT
  • Individual IT's Avatar Topic Author
  • Offline
  • Elite Member
  • Developer of the K2 Import / Export Tool
More
8 years 5 months ago #149302 by Individual IT
Replied by Individual IT on topic Tool for importing / exporting items to / from K2
Hi Madeleine,
make sure in the CSV file the full path of the images are give. On a UNIX/LINUX system this probably would be something like /home/www/......

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

More
8 years 5 months ago #149317 by Madeleine McMullin
Replied by Madeleine McMullin on topic Tool for importing / exporting items to / from K2
Hi, the path I'm using is home/domainname/public_html/ so should be fine. I've checked it against the products that already have images and it matches, except that the folder that they are kept in is different.
Any other ideas?

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

  • Individual IT
  • Individual IT's Avatar Topic Author
  • Offline
  • Elite Member
  • Developer of the K2 Import / Export Tool
More
8 years 4 months ago #149350 by Individual IT
Replied by Individual IT on topic Tool for importing / exporting items to / from K2
please try to use a / at the beginning so it becomes /home/domainname/public_html/

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


Powered by Kunena Forum