images from joomla media folder

  • Posts: 222
  • Thank you received: 1
11 years 3 months ago #133048

How can I upload the images for category img from joomla media folder. If I press to upload image, I get screen from my computer.

Vero

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

  • Posts: 26205
  • Thank you received: 4032
  • MODERATOR
11 years 3 months ago #133053

Hi,

In a future version of HikaShop it will be possible to select an image instead of always upload it.
But it won't be possible to select an image from the Joomla media folder, only from the HikaShop image folder.
The HikaShop image folder contains the images and also some thumbnails, it has a special structure/organization.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 32
  • Thank you received: 0
10 years 10 months ago #153029

Hello again :)
I want to ask how to add fields to the categories from which to select a photo from the folder HikaShop photos, just like in products pages? :)

Attachments:

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

  • Posts: 83407
  • Thank you received: 13500
  • MODERATOR
10 years 10 months ago #153030

Hi,

If you want to add categories (folders) for the images, you need to go in the folder where the images are stored via FTP and create folders. The default folder is media/com_hikashop/upload

The following user(s) said Thank You: LIP Trade

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

  • Posts: 32
  • Thank you received: 0
10 years 10 months ago #153179

Thanks Nicolas, but how to get the image from there, on the page for the categories have only one button browse, which only opens folders from my device. There is no option to choose from the media / com_hikashop / the upload as in product page.
=====================================================================================
Its me agan, i find the solution :) In category view "category / form.php" i add this code:
<div style="float:right">
<?php
echo $this->popup->display(
'<img src="'.HIKASHOP_IMAGES.'add.png"/>'.JText::_('ADD'),
'ADD',
hikashop_completeLink("product&task=selectimage&product_id=".@$this->element->product_id,true),
'image_add_button',
860, 480, '', '', 'button'
);
?>
<?php
echo $this->popup->display(
'<img src="'.HIKASHOP_IMAGES.'go.png"/>'.JText::_('SELECT'),
'SELECT',
hikashop_completeLink("product&task=galleryimage&product_id=".@$this->element->product_id,true),
'image_gallery_button',
860, 480, '', '', 'button'
);
?>
</div>


right after:
<?php
echo $this->popup->display(
'<img src="'.HIKASHOP_IMAGES.'add.png"/>'.JText::_('ADD'),
'ADD',
hikashop_completeLink("product&task=selectimage&product_id=".@$this->element->product_id,true),
'image_add_button',
860, 480, '', '', 'button'
);
?>
============================
Buttons working well and they open desired directory "media / com_hikashop / upload/" but image cant change with new chosen......:(

Attachments:
Last edit: 10 years 10 months ago by LIP Trade.

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

  • Posts: 83407
  • Thank you received: 13500
  • MODERATOR
10 years 10 months ago #153213

There is no option to select the category image from the upload folder. It has to be uploaded in the interface for now.

The code change that you provided doesn't work on my end.

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

  • Posts: 32
  • Thank you received: 0
10 years 10 months ago #153551

Hello, when can we expect this option? Because it is inconvenient to upload photos from different places? Furthermore, to take much disk space on the server with the same pictures ....

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

  • Posts: 83407
  • Thank you received: 13500
  • MODERATOR
10 years 10 months ago #153566

Hi,

There is no expected date at the moment. It's on our todo list but not a high priority at the moment.
You can always link the categories and the images together by using the CSV import system to upload a CSV of the categories with the categories_image column filled with the name of the image you want for each category. The system will automatically link the category with the corresponding image in the upload folder.

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

  • Posts: 5
  • Thank you received: 1
4 years 6 months ago #323867

It is now six years since you said that this is on the 'to do' list. Is it still on that list? If so, any idea when it might happen? Thanks.

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

  • Posts: 83407
  • Thank you received: 13500
  • MODERATOR
4 years 6 months ago #323957

Hi,

This has been added years ago.
When you edit a category, you have a + button which will open a popup where you'll be able to select the images you want to use:
monosnap.com/file/nxyAdrVuFQLdrbwuzBZfOMYngUKex5

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

  • Posts: 5
  • Thank you received: 1
4 years 6 months ago #324030

nicolas wrote: Hi,

When you edit a category, you have a + button which will open a popup where you'll be able to select the images you want to use:
monosnap.com/file/nxyAdrVuFQLdrbwuzBZfOMYngUKex5


Sorry, I obviously didn't explain myself properly. I want to be able to access images that already exist in Joomla and have been used in articles, for instance, but I only get offered the 'HikaShop Images' folder and cannot access other media folders.

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

  • Posts: 83407
  • Thank you received: 13500
  • MODERATOR
4 years 5 months ago #324031

Hi,

Just change the "upload folder" setting of the HikaShop configuration to point to the folder where your other medias are stored and you'll see them in the selector popup.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum