Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Ellen Jensen
  2. F2C Content type settings
  3. Thursday, October 05 2017, 12:17 PM
  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
F2C webmaster 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)
Ellen Jensen Accepted Answer Pending Moderation
Ahh okay. Thanks for answer. I will find another way to do it :-)


Regards, Ellen
Ellen Jensen 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.
F2C webmaster 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 ;)
  • Page :
  • 1


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