Tip: sizing textareas to keep edit forms tidy
One of the great strengths of Perch is the flexibility to construct content forms that match the nature of your content. Often you know when a field like a textarea
should expect a little or a lot of content.
A perfect example of this a news article – you might have a big textarea
for the main body of the article, and a much smaller one for an introductory paragraph used for a listing elsewhere on the site.
You can set the size of a textarea
in your template:
<perch:content type="textarea" size="xl" ... />
The size options are based on t-shirt sizes: s
, m
, l
, xl
and xxl
. You can read about the other options for textareas
on the textarea documentation page.