Forum

Thread tagged as: Question, Blog

Code input from Perch backend

Hi,

Is it possible to have a clean code tag to use in the backend. So i could eg. use :

<perch:blog id="postTitle" type="text" label="Title" required="true" size="xl autowidth" order="1" />

For the title on the page?

Cheers, Simon

Simon Rothenborg

Simon Rothenborg 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Sorry, I don't understand your question. Could you give an example?

Instead for a template:

<perch:content id="text" type="text" label="Text" required="true" title="true" />

Where the type is text. Is there a type that is "clean" code?

Drew McLellan

Drew McLellan 2638 points
Perch Support

What do you mean by clean?

So I in the Perch backend could use this template:

 <?php perch_blog_custom(array('template' => 'post_headline.html', 'count' => 1)) ?>

That would be us on the website title like this:

 <title><?php perch_blog_custom(array('template' => 'post_headline.html', 'count' => 1)) ?></title>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, you can do that.