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
9 years 7 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
9 years 7 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
9 years 6 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
9 years 6 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
9 years 5 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
9 years 5 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
9 years 4 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
9 years 4 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
9 years 4 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
9 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.

More
9 years 4 months ago #149365 by Madeleine McMullin
Replied by Madeleine McMullin on topic Tool for importing / exporting items to / from K2
Hi, I already had a / at the beginning but I've realised that there was another mistake in the path. It's uploading fine. Sorry to have wasted your time.

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

More
9 years 4 months ago #149435 by Hisslink
I would like to use this tool for exporting items from an old 1.5 website, but the csv file is empty. Only the first row is filled with info, but none of the K2 items are in the file. What could be the problem?

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

More
9 years 4 months ago #149502 by Individual IT
Replied by Individual IT on topic Tool for importing / exporting items to / from K2
Hi Hisslink,
Could you please tell me what version of k2 and what version of my tool you are using?

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

More
9 years 4 months ago - 9 years 4 months ago #149512 by Dean
After months of using this wonderful tool I am now having an issue.
I am moving the K2 items to a new install and am getting this message when importing the csv.

There is a problem with the resource you are looking for, and it cannot be displayed

Joomla 3.4.5
PHP Version 5.4.45
K2 v2.6.9
Last edit: 9 years 4 months ago by Dean.

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
9 years 4 months ago #149555 by Individual IT
Replied by Individual IT on topic Tool for importing / exporting items to / from K2
Is this when you start the extension or when you open an imported item?

could you please post a part of the CSv file

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

More
9 years 4 months ago #149556 by Dean
This happens after it uploads the file and tries to import the items.

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
9 years 4 months ago #149603 by Individual IT
Replied by Individual IT on topic Tool for importing / exporting items to / from K2
please contact me via the contact formular and I can send you the most current development version www.individual-it.net/en/kontakt-impressum.html

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

More
9 years 4 months ago #149724 by Dean
contact sent..thanks again

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

More
9 years 4 months ago #149744 by Hisslink
I'm using K2 v2.4.1 and K2 imort 1.4.1

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

More
8 years 11 months ago - 8 years 11 months ago #153753 by Dean
I recently upgraded to Joomla 3.5.1 and now I am getting these errors. Anyone else getting them?
It happens as soon as I open it from Components/K2 Import. Before trying to import anything.

Strict Standards: Declaration of K2importController::display() should be compatible with JControllerLegacy::display($cachable = false, $urlparams = Array) in /administrator/components/com_k2import/controller.php on line 23

Strict Standards: Only variables should be assigned by reference in /administrator/components/com_k2import/k2import.php on line 29

Strict Standards: Only variables should be assigned by reference in /administrator/components/com_k2import/k2import.php on line 30

Deprecated: Non-static method k2importToolbarHelper::upload() should not be called statically, assuming $this from incompatible context in /administrator/components/com_k2import/views/k2import/view.html.php on line 28

Strict Standards: Only variables should be assigned by reference in /administrator/components/com_k2import/helper.php on line 14

Deprecated: Non-static method k2importToolbarHelper::export() should not be called statically, assuming $this from incompatible context in /administrator/components/com_k2import/views/k2import/view.html.php on line 30

Strict Standards: Only variables should be assigned by reference in /administrator/components/com_k2import/helper.php on line 24

Strict Standards: Only variables should be assigned by reference in /administrator/components/com_k2import/views/k2import/view.html.php on line 34

Strict Standards: Only variables should be assigned by reference in /administrator/components/com_k2import/views/k2import/view.html.php on line 56

Strict Standards: Only variables should be assigned by reference in /administrator/components/com_k2import/views/k2import/view.html.php on line 57

Strict Standards: Only variables should be assigned by reference in /administrator/components/com_k2import/views/k2import/view.html.php on line 144

Strict Standards: Only variables should be assigned by reference in /administrator/components/com_k2import/models/category.php on line 133

Strict Standards: Only variables should be assigned by reference in /administrator/components/com_k2import/views/k2import/tmpl/default.php on line 14

Joomla 3.5.1
PHP 5.6.14
K2 v2.7.0
K2import v 2.4_alpha2
Last edit: 8 years 11 months ago by Dean. Reason: correct k2import version

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


Powered by Kunena Forum