Forum

Thread tagged as: Suggestions

Little text preview in the backend

Sometimes it's a little difficult to find the right content chunk inside Perch > Pages > Regions ( and > Multiple items) A little preview text could help here.

It's probably easier to grasp with a picture: https://dl.dropboxusercontent.com/u/11320047/content-preview.png (ew, the guys who killed mailbox.app)

Urs Bräm

Urs Bräm 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think that works as a neat example, but I'm not sure how it would apply to any unknown sort of template and content.

<perch:content type="text" id="title" backendpreview="true"/>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Sure, but then there's images, maps, repeaters, blocks... what if the output is HTML... lots of considerations for something that might look easy from the outside.

Definitely. Just an idea, nice to have :-)

With the short code above, I meant that this (would for starters) only apply to text and textarea field types (so covering alt texts too), and one'd have to define it in the template. So no images. With repeaters and blocks, it would just pick the first appearance in a region. Formatting would have to be stripped from the textarea. If a textarea contains an iframe e.g., the preview text would be empty.