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. Vegard
  2. F2C field types
  3. Friday, 20 January 2017
  4.  Subscribe via email
O how I have searched.

What is the syntax to show the Content Tags? Users can select a tag in the form. But it is not showing. I need to add the syntax to my template. But I can't find the syntax.
Accepted Answer
Accepted Answer Pending Moderation
NO, it's an Array! So you need to build up any html using {foreach} smarty syntax.
http://documentation.form2content.com/f2c-tips-and-tricks/f2c-smarty-code-snippets/45-multi-select-list-array-output-isarray-inarray

BUT: Form2Content just loads the Joomla Tag interface so you can select/add tags. We don't do anything with the tags since the tag component and Joomla do that for us. Remember, F2C only edits the article content HTML. Tags are by default displayed outside the content through the Joomla Template.

We did add the template parameter {$F2C_TAGS} so you can add logic based on the selected tags. It is not developed to display the actual tags with links etc. since that requires routing done by the tags component.

You can load a tag module within your article using the loadposition option from Joomla.
https://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F

Hope this helps!

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 field types
  3. # Permalink
Responses (6)
Accepted Answer Pending Moderation
Please follow forum rules and add your versions.

I don't understand your question. Which content tags? Users can select a tag.... are you taking about the Joomla Tags? In the F2C submission form?

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 field types
  3. # 1
Accepted Answer Pending Moderation
Form2Content Pro version 6.15.0

The content tags in Joomla. com_tags. Users can select or add a text when they fill in the form. But upon displaying what they just submitted, the tags are not showing. This is because I haven't added the tags-syntax in my template. I don't know what the syntax is.
  1. more than a month ago
  2. F2C field types
  3. # 2
Accepted Answer Pending Moderation
Thanks, that clear's it up.

The field is {$F2C_TAGS} which is an array consisting of the ID and the Title of teh tag. I am updating our documentation parameter list as we speak.

https://docs.google.com/spreadsheets/d/1JhHZosGAZlAAHrbvF29O23jrYXFRqw_lV-hJYfhd_QE/edit?usp=sharing

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 field types
  3. # 3
Accepted Answer Pending Moderation
Great.
So if I just want the tag and a link to it I'll just have to add {$F2C_TAGS} ?
  1. more than a month ago
  2. F2C field types
  3. # 4
Accepted Answer Pending Moderation
Great! Thanks for the quick reply.
  1. more than a month ago
  2. F2C field types
  3. # 5
  • Page :
  • 1


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