Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Using truncate() in templates
· 11 years ago
Ok I looked and I found the code was actually smarter than I remember. The logic was such that it would go to the end of the sentence given any character count. This way, your truncated text is not
-
Using truncate() in templates
· 11 years ago
I will test this further!
-
Using truncate() in templates
· 11 years ago
Yes, I noted about the striptags but I still have this weird result with inconsistent length My code : {{ portfolio.desc|striptags|truncate(50) }} and the result : http://imgur.com/IV3h5zD 137 chars
-
Using truncate() in templates
· 11 years ago
Did you not read the stiptags comment I made? You really didn't provide any specifics about your problem.
-
Using truncate() in templates
· 11 years ago
Thanks. Ok for the documentation part but what about the problem I mentioned ?
-
Using truncate() in templates
· 11 years ago
Looks like we neglected to add that to the docs. Will get to it soon. If you look at the code in the TwigExtension.php class you will see: /** * Truncate content by a limit. * * @
-
Using truncate() in templates
· 11 years ago
Hi, I try to use truncate in template but the result is very inconsistent ... does work, does not, very weird. . I use grav 0.9.3.9 Someone may help me ... By the way there is nothing regarding trunca
-
Unable to update to 0.9.37 of Grav core
· 11 years ago
Thats what I'm guessing happened, but I haven't the foggiest just what did it exactly. Oh well, I'll remember that for next time if I see that error.
-
Unable to update to 0.9.37 of Grav core
· 11 years ago
That's pretty odd. It was disabled in your php.ini file? If it was on a shared hosting environment, perhaps cpanel updated PHP and this value got reset?
-
Unable to update to 0.9.37 of Grav core
· 11 years ago
Ahhh, I've sorted this. Somehow the 'zip' PHP extension got disabled - can't work out how this occurred as I know I did an update to 0.9.35 only last week and didn't have any problems, and haven't tou