Please note that Form2Content is no longer being developed. All files from the latest version can be found on Github.

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Garry
  2. F2C article templating
  3. Wednesday, 27 May 2020
  4.  Subscribe via email
I've recently taken over hosting for an animal protection organization, which is using Joomla and F2C for their website. The site had been create several years back and uses a non-responsive site template. I was looking into refreshing the website with a responsive template, which I'd try to adapt for the website. Now, while I might get a finished template adapted somehow to show regular Joomla content, add F2C to this, and I'm completely out of ideas on how to get the F2C generated content articles into that template ... currently, all content is shown more or less liek the built-in Joomla editor, without the altered layout ... does anybody have some recommendation about what to look for in the old template/setup in order to get it moved over to the new template and actually look right?

Help appreciated!
Responses (4)
Accepted Answer Pending Moderation
Hi Garry,

F2C generates 100% Joomla articles. The articles fit in any Joomla template, whether responsive or not. It's the CSS and html used in the content that matters how the article will behave in your template. This part is determined by the customization your predecessor has made and can be found in the F2C Artcle Templates.

You can change the html in those article templates to fit your Joomla template framework, clear cache and refresh the F2C articles via the F2C article manager. That will regenerated the Joomla articles with the changes.

Please read our documentation to get a clearer understanding of F2C: https://documentation.form2content.com/

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
OK, I'm starting to get the hang of this, and have mostly understood the structure of how to get the articles formatted based on the sample code I built ...
Anyway, I couldn't seem to find one thing ... there are two F2C templates, e.g. Default_Intro.tpl and Default_Main.tpl. The first is used alone for the category view, when an article is clicked, the second part is added below the results of the Intro template. My problem is that I need to close some tags which start in the intro template, either in that part, or the main template. So, say, this is the structure:
<div>
... Intro

... Main
</div>
If I'm in the overview, just the Main part is left out, but the </div> still needs to be there. Adding the closing div in the main template isn't the problem, but I need an {if ...} statement in the intro template that will only output the closing div in case main text will not be added ... none of the variables listed in the cheat sheet seem to do what I need ...
  1. more than a month ago
  2. F2C article templating
  3. # 2
Accepted Answer Pending Moderation
Thinking about the way F2C works - creating a more or less static Joomla article - I guess what I need here isn't actually possible, is it? At least not based on an if-statement in the F2C template code ... I reckon I will need to build the template in a way that has the place keeper div in the intro template, then fill that with some JS code if the main template is added to the page by Joomla ... !? Off to the drawing board so to speak ... ;)
  1. more than a month ago
  2. F2C article templating
  3. # 3
Accepted Answer Pending Moderation
Hi Garry,

Having tags open between intro and main part of the Joomla article isn't possible (not in Joomla either).

So simply recreate the intro in your main template BUT make sure you switch "display introduction" in your Joomla settings to OFF. If you don't you will see the intro double ;)

https://documentation.form2content.com/f2c-templating/1-how-does-read-more-work-in-f2c2
https://documentation.form2content.com/f2c-templating/creating-custom-templates

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. # 4
  • Page :
  • 1


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