Keyword

[Solved] Using absolute urls for k2 item image

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar Topic Author
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
11 years 2 months ago - 11 years 2 months ago #116272 by Kannan Naidu Venugopal
[Solved] Using absolute urls for k2 item image was created by Kannan Naidu Venugopal
Hi,

Has anyone managed to use absolute urls for all k2 item image instead of the relative url ?

Currently, its /media/images/............

I need it to be http://websitedomain/media/images/......

The way i see it at the moment is to "hack" the modals/item.php file in the component.
					
K2 Rocks \m/

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

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar Topic Author
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
11 years 2 months ago #116273 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: [Solved] Using absolute urls for k2 item image
I asked too soon... LOL

Managed to solve it by using the code used to generate open graph image link for facebook.

This is what i did, hope it works in LIVE site too ;)
					
K2 Rocks \m/

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

More
10 years 2 weeks ago #116274 by luis
is this is a way to improve URLs from images in k2?

im sorry im new to this and i want to improve the urls too i show you an example of one of my images

liderazgonatural.com/media/k2/items/cache/2fa67f482133f1c934235b73c2a03954_XL.jpg

how can i do this? thanks :) !

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 weeks ago #116275 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: [Solved] Using absolute urls for k2 item image
The alt and title tags are there so you do not need to change the URL.
If Google is not indexing them it's because Joomla!'s default robots.txt is blocking the /media folder.

Open your robots.txt and remove that line.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
10 years 2 weeks ago #116276 by luis
but, is there a way to change the k2 URLs to be friendlier? just for aesthetic... (if this doesnt matter for seo)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 weeks ago #116277 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: [Solved] Using absolute urls for k2 item image
Unfortunately no. The image URLs cannot be changed.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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