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. Klaus Selz
  2. F2C submission form templating
  3. Tuesday, 23 October 2018
  4.  Subscribe via email
Joomla 3.8.13 - F2C Pro 6.17.4 - Protostar

I'm working on 2 different submission forms.

a) Pianos - each submitted article should be in the category "pianos" and use the f2c intro/main template "pianos"
b) Grand Pianos - each submitted article should be in the category "grand pianos" and use the f2c intro/main template "grand pianos"

Is it possible to pre select which category and template the submission form uses for the submitted data ?

The best would be if the user just clicks on the respective submission form and doesn't have to further choose a category or template.

Is this possible?
Accepted Answer
Accepted Answer Pending Moderation
Hi Klaus,

My suggestion, have one F2C Content Type called Piano's.

Name category => Piano type, and show 2 subcategories.

Never show template selection ;).
In your template use Smarty for if category X show this, else show that. That way you can change all the layout, styling etc. per category yet only use one template.

example {if JOOMLA_CATEGORY_ID =='1'} ..... {else} ...... {/if}

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
Responses (1)


There are replies in this post but you are not allowed to view the replies from this post.