Keyword

Custom Import

  • gianpiero sfameni
  • gianpiero sfameni's Avatar Topic Author
  • Offline
  • New Member
More
14 years 5 months ago #75834 by gianpiero sfameni
Custom Import was created by gianpiero sfameni
Hi all, i'm thinking at a customization of the import function for adding the first image found in IntroText as the K2 Image of the Item.

Trying to explain:

K2 work very well on converting section / category / articles to K2 contents but at the end of the process you have your items that display images, text etc in in the standard Joomla way.

You have to edit your items and upload images for using K2 images displaying functionality.

I understand it's not easy to include this step in the import routine (for various reason), i'm a newby but i want to learn K2 and i'm watching at the code trying to do it by myself..... may be i'm on the wrong way but basically this is my idea:

Modify Import function In Models\items.php

For each item imported
Search $item->introtext (using DomDocument)
Find the first IMG tag
Extract SRC attribute
Upload image and create thumbnail

Any idea or advice is appreciated.

Sorry for my English.... Thank you in advance!

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


Powered by Kunena Forum