Hi,
Since the landing page templates are html, css and javascript code, I like to pretty print it so it is readable and maintainable. However, if I
-
open a template
-
copy and paste the code into Brackets (Adobe's open source web code editor)
-
run the Beautify extension
-
copy the nicely laid out code
-
select the code in the MKTO template editor and delete it, and
-
paste in the beautified code...
MKTO tries to auto save and says "error". Nothing useful or in any way helpful, just "error." Its the same exact code just beautified. I did figure out the source of the error.
MKTO seems to check the php fragments to see if they've been touched. The Beautify extension for Brackets added a space after the [ turning this:
<?php echo $mContext['bodyAttributes'] ?>
into this:
<?php echo $mContext[ 'bodyAttributes'] ?>
I'm not a php'er but I doubt that would affect the php code. So if the landing page template editor gives you 'error' after you paste some code in check the php fragments to make sure they are exactly what MKTO wrote.