Image paths.

  • Posts: 61
  • Thank you received: 0
13 years 3 months ago #23084

I have products that need to have images displayed in their description. Using the image button in the editor I can upload an image to the site's images folder.
It displays fine in the editor, but when the product is displayed in the shop, the image doesn't appear.

Now, it's not a problem for me to edit the html source of the product description and change the url to src="../../../../images/photo.jpg" (which of course stops the image being displayed in the editor - but OK in the shop) but is going to cause an enormous problem when the site is handed over to the client - as they won't have a clue as to what to do when they have to add images to descriptions.

I don't want them messing around in the html either (I've templated all the products so they don't even have to think too hard to add stuff).

Any suggestions?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 3 months ago #23089

The path of images uploaded in the description of products is handled by the wysiwyg editor you're using on your website. Normally, it should set a path so that this problem does not occur. You can try to use another editor. There are tens of them that you can install for joomla. We don't have such problem on our end with the default joomla editor.

You could also ask the support of your editor for help. Maybe it's a problem which is already solved and explained in their documentation...

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

  • Posts: 61
  • Thank you received: 0
13 years 3 months ago #23093

Hmm, I just switched to the default J1.6 editor - same problem. Something I omitted to mention is that these products are variants.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 3 months ago #23098

We don't have such problem with the default joomla 1.6 editor whether on product descriptions or variant description. Also, the image links are not handled by HikaShop. You should have the same problem on joomla articles no ?

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

  • Posts: 61
  • Thank you received: 0
13 years 3 months ago #23123

The problem doesn't occur in Joomla Articles - only in HikaShop Products.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 3 months ago #23137

Do you have any content/editor plugin installed which could pose problem? Do you use a special image button plugin ?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 3 months ago #23139

Thanks to the access you provided I found the problem. It actually comes from your template which doesn't set the base path correctly. More info on groups.google.com/group/joomla-dev-gener...ead/6fb9964f3294bf60
I've added the line belwo at the top of your template's index.php file to fix the problem:
$live_site = $this->setBase(JURI::base());

The image added for that product now works on both FE and BE:
orb-itservices.co.uk/mckinnon/component/...-dolls.html?Itemid=0

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

  • Posts: 61
  • Thank you received: 0
13 years 3 months ago #23142

Nicolas - once again, thank you very much for your outstanding support.

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

Time to create page: 0.044 seconds
Powered by Kunena Forum