Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Garry
  2. F2C article templating
  3. Thursday, 29 October 2020
  4.  Subscribe via email
Hi,

I just noticed that on a website whose hosting I just moved, all the URLs of images contain the complete, absolute URL instead of just a relative, e.g.:

<img src="http://the-domain.com/images/stories/com_form2content/..."

instead of just

<img src="/images/stories/com_form2content/..."

This of course causes warnings as the site is running with HTTPS ...

As those URLs are already present in the database for the generated articles, it must be something that happens when f2c creates the articles from the input with the templates.

I've tried to find where the absolute URL path comes from, but wasn't able to ... the f2c templates do not have those paths in them, nor can I find them anywhere in the config menus - I might not be looking at the right place, though ...

Any hints where I should be looking to fix this? Thanks!!!
Responses (2)
Accepted Answer Pending Moderation
Hi Garry,

Apologies for the late reply, have you managed to solve the issue? There are many more Smarty Template variables you can use to build the relative URL.

Regards,
PAtrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C article templating
  3. # 1
Accepted Answer Pending Moderation
No, and I'm pretty much at a loss where to start looking ... the .tbl/tpl files do not have anything with http:// in them, nor can I find anything in the settings pages within the Joomla/F2C forms where anything shows up. Possibly somewhere in the database itself? But that's hopeless to look through, as I get thousands of matches doing a grep for "http://www.the.domain/" ...

Looking at the editor, the media files are referenced just fine through their relative address, that is without the leading http:// or https://
Once F2C is done with the edit, the article in Joomla has the incorrect absolute URLs in the article source. So the problem is in the actual generating of the Joomla article from the F2C article.

As a side note, when an article has URLs or src links in it directly, these AREN'T changed and remain as entered. It's just the media items added through the separate form fields ...
  1. more than a month ago
  2. F2C article templating
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.