Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. David Dutnall
  2. Form2Content KML Feeds extension
  3. Thursday, 05 April 2018
  4.  Subscribe via email
Hi,

I purchased F2Content KML today but cannot get it working. If i go to the URL produced I get a white page with the word 'Error" in the top left hand corner.

I have tried with and without filters, trashed and recreated by no joy.

Any ideas?

Regards,

Dave
References
  1. https://www.streetviews.co.uk/index.php?option=com_form2contentkmlfeeds&task=kmlfeed.display&view=kmlfeed&format=raw&id=2
Responses (13)
F2C webmaster Accepted Answer Pending Moderation
Hi David,

Can you add your F2C/Joomla versions?
Ar you using custom templates or just template for the placemarker?
Have you got a F2C content type including geocoder field?

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
David Dutnall Accepted Answer Pending Moderation
Hi Patrick,

Strange, I'm sure did add them. Anyway here they are:

F2C Pro 6.17.0 for Joomla 3.8
F2C KML Feeds 6.3.0 for Joomla 3.x
Joomla 3.8.6

I have F2C content type and Geocoder field (not sure whether I was supposed to use the Lattitude / Longitude fields or use GEO in both but tried both ways and no change.

If I choose "Use template for placemarker generation" the record refuses to save in the backend so I leave this off and it saves. I cant find any documentation relating to the template element so this part is blank.

I have tried with filters added and without but still the same error.

Regards,

Dave
F2C webmaster Accepted Answer Pending Moderation
Hi Dave,

Can you send me a PM to support at opensourcedesign.nl? I can send you a development version. We are currently making many changes in F2C and preparing for J4.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
David Dutnall Accepted Answer Pending Moderation
Hi Patrick,

Thanks. I have sent you an email.

Regards,

Dave
David Dutnall Accepted Answer Pending Moderation
Hi Patrick,

Thanks, the updated dev version now produces the KML which I can render over one of my maps perfectly fine with its own marker image.

I still cannot save if I choose the "Use template for placemarker generation" however.

May I ask what is the difference between the default option and template? I can find no supporting documentation for this on the site.

Is this possible.?

1 - Have a link from Title in placemarker box back to article.
2 - Display article thumbnail in placemarker box with link back to article
3 - Display infotext in placemarker box.

Regards,

Dave
F2C webmaster Accepted Answer Pending Moderation
Hi Dave,

Thanks for the feedback!

The template option by default is for the Google Maps Marker, i.e. the content of the popup. You can use the normal F2C Smarty template options. An example: https://gist.github.com/Form2Content/c6fd4ca5835d01a0280f

You can also template the entire KML feed item. This of course requires more understanding of the KML feed structure but gives more possibilities if you need them.

If you can't link a placemerker template (first option) can you send us an admin account so we can have a look?

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
David Dutnall Accepted Answer Pending Moderation
Hi Patrick,

Thanks for the info. I still cant save in the back-end when I activate "Use template for placemark generation".

Maybe I am missing something? Does the template have to be added in the "Additional placemark data" box or does it need to be a .tpl file residing somewhere as in the normal F2C smarty templates?

I have added site details.

Regards,

Dave
David Dutnall Accepted Answer Pending Moderation
Hi Patrick,

Have you had time to have a look at this yet? If I add the Smarty code into the "Additional placemark data" box it just appends the KML file at the end.

I have also tried activating the "Use template for placemark generation" by adding a "1" in the column in MySQL table directly which activates the button but still makes no difference to the output.

Regards,

Dave
David Dutnall Accepted Answer Pending Moderation
Any feedback at all would be welcome.

Regards,

Dave
F2C webmaster Accepted Answer Pending Moderation
Hi David,

Sorry, slipt my mind as I expected en email with site info. I now see you added it in the website.
Will see what I can find.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
F2C webmaster Accepted Answer Pending Moderation
Hi Dave,

I can verify the issue with the button for template choice and have also reproduced it on one of my websites. I have asked Julien to look into it. Apologies for the late reply.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
Julien Accepted Answer Pending Moderation
Hi Dave,

I think this can be fixed by making a small change in the Form2Content component.

Open the file <web site root>/components/com_form2content/models/fields/f2ctemplate.php for editing.

Change line #54 from:

$layout = new JLayoutFile($layoutFile, JPATH_COMPONENT_SITE.'/layouts');

To:
$layout = new JLayoutFile($layoutFile, JPATH_SITE.'/components/com_form2content/layouts');


Can you let me know if this resolves the issue please?

best,
Julien
David Dutnall Accepted Answer Pending Moderation
Hi,

Patrick - No need for apologies, I know you guys are busy working on the final version / Joomla 4.

Julien - Many thanks. I haven't fully tested but the template option is there now, selectable and the record saves correctly so looking good.

Regards,

Dave
  • Page :
  • 1


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