Forum

Thread tagged as: Problem, Error

Words tag doesn't seem to work on gallery app image description

Hi,

For some reason, if I try to add the words tag and limit to 10 (or whatever) on the image description field on the default gallery app, I get the below:

Warning: trim() expects parameter 1 to be string, array given in E:\Vital\Local Projects\CakesAndPlates\trunk\CakesAndPlates\perch\core\lib\PerchUtil.class.php on line 277

This is what I'm trying to do: <perch:gallery id="desc" textile="true" words="10" />

It works fine on the ImageAlt field. So if I do: <perch:gallery id="imageAlt" words="1" />, I dont get any issues.

Any ideas?

Jon Young

Jon Young 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You're missing the type attribute. It's required.

Perfect, thanks Drew.