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. Ellen Jensen
  2. F2C Content type settings
  3. Thursday, 05 October 2017
  4.  Subscribe via email
I often use the limit of words in text and it works fine. But can I also limit the characters or lines?
I've put this in now:
  {$ TEXT | truncate: 80}

But it only works on words and not on characters.

Regards Ellen
Accepted Answer
Accepted Answer Pending Moderation
Hi Ellen,

Any change to a variable, like the truncate function is done by Smarty. The page I send provides all the modifiers for the truncate function. Since you never know the line length you can't limit to that....

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
Responses (4)
Accepted Answer Pending Moderation
Please use Google :) , now I did it for you...... https://www.smarty.net/docsv2/en/language.modifier.truncate.tpl
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C Content type settings
  3. # 1
Accepted Answer Pending Moderation
You knew what to look for, I did not.
Thank you very much, but unfortunately did not solve my problem.
There is nothing with limit on lines either.
  1. more than a month ago
  2. F2C Content type settings
  3. # 2
Accepted Answer Pending Moderation
Ahh okay. Thanks for answer. I will find another way to do it :-)


Regards, Ellen
  1. more than a month ago
  2. F2C Content type settings
  3. # 3
  • Page :
  • 1


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