Suggestion: Allow relative urls on the image field

More
10 years 4 months ago #48913 by jrodgar
The images have the posibility to link somewhere, but is only allowing absolute urls.

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
10 years 4 months ago #48938 by ggppdk
Hello

links appear absolute, the path is relative

maybe you meant to ask for non-local URL path



-- is that what you ask ? a non-local URL paths for original images?



NOTE:
that non-local image, will be the thumbnail process to be a little slower, but then again
-- this is only done once
-- thumbnails are always locals so thumbnail size check will not have performance hit
-- the thumbnail size


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
10 years 4 months ago #48944 by jrodgar
Mmm that´s not a bad idea, but my point is much simpler


The image field have the option to link to a different url so when you click on the picture you are redirected. Now, it seems that the link provided is considered always absolute. I mean, a link to "/my-article", goes to "http://my-article" instead of " myjoomladomain.com/my-article "

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
10 years 4 months ago #48945 by ggppdk
Hello

so you meant relative URLs to be inside the HTML source

actually we can not do this due to compatibilities with Joomla SEF plugin and other 3rd party plugins

so the source path of original images and thumbnails is relative (you can move folder and change image field configuration or component parameters)

but the actual image URLs inside the HTML source will be absolute (=prepend CURRENT site URL + joomla subfolder), we will not change this


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
10 years 3 months ago #49286 by jrodgar
I think I have made something like this without problems. Maybe something on the lines of
Code:
$url = getParamUrl(); parsed = parse_url($url); if (parsed[host] == '') { // is relative $url = JOOMLA_PATH . $url }


How its going the migration to github? this could be the kind of little stuff we can better propose that way.

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
10 years 3 months ago #49294 by ggppdk

jrodgar wrote: The image field have the option to link to a different url so when you click on the picture you are redirected. Now, it seems that the link provided is considered always absolute. I mean, a link to "/my-article", goes to "http://my-article" instead of " myjoomladomain.com/my-article "



so the reason for this is when linking to URLs is enabled and a relative URL is entered


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.377 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline