We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Question

Type="code"

Is there a way I can create a template for entering code in the CMS?

If I use a textarea for the template it seems to strip out a lot of the code I paste in?

James Tedder

James Tedder 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What sort of code? If it's HTML, add html="true" to enable HTML.

PHP Code.

Drew McLellan

Drew McLellan 2638 points
Perch Support

PHP for display, or PHP that you're expecting to be parsed and executed?

parsed and executed :-/

Drew McLellan

Drew McLellan 2638 points
Perch Support

You'll not be surprised to learn that this isn't something we're going to support.

Yes... It slowly became clear to me what I was asking wasn't simple.

Drew McLellan

Drew McLellan 2638 points
Perch Support

... and also extremely dangerous!

Oh ok.... Another thing my parents forgot to teach me!