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. Niels
  2. F2C article templating
  3. Wednesday, 20 April 2016
  4.  Subscribe via email
I want to use the the function {if $FIELDNAME|contains:"value"} output {else} other output (optional) {/if} to display selected option from my checkbox field.

When I apply this on my field and refresh the articles, I get this message:

Syntax Error in template "/var/www/vhosts/***/httpdocs/media/com_form2content/templates/default_main_template_Vacatures.tpl" on line 21 "{if $VACATURE_LOCATIE|contains:"Lint"}" unknown modifier "contains"

I don't know where this is coming from or how to solve this. I tried exact option names, parts of names and even another fieldname but nothing is working. Any ideas?

Regards Niels
Accepted Answer
Accepted Answer Pending Moderation
Hi Julien,

I have checked and the file exists. After some searching in my plugins I have discovered that the error is caused by a plugin called "fsj_include" (from the component Freestyle FAQs). After I disabled this plugin the CONTAINS function works correct.

Regards Niels
Responses (5)
Accepted Answer Pending Moderation
Hi Niels,

I did a test and here it works.
Can you please check if the file
<web site root>/components/com_form2content/libraries/smarty/plugins/modifier.contains.php
exists on your system?

best,
Julien
  1. more than a month ago
  2. F2C article templating
  3. # 1
Accepted Answer Pending Moderation
Hi Niels,

It might be that it's a custom modifier that got "lost". Julien is going to look into it.

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. # 2
Accepted Answer Pending Moderation
Joomla 3.5.1 + F2C Pro 6.12.0
  1. more than a month ago
  2. F2C article templating
  3. # 3
Accepted Answer Pending Moderation
Please add versions
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.