When I create a new image template variable it is setting the default_text field in the modx_site_tmplvars table to ’\n’
--
-- Dumping data for table `modx_site_tmplvars`
--
INSERT INTO `modx_site_tmplvars` (`id`, `type`, `name`, `caption`, `description`, `editor_type`, `category`, `locked`, `elements`, `rank`, `display`, `display_params`, `default_text`, `properties`) VALUES
(7, 'image', 'Picture Placeholder', 'Picture Placeholder', '', 0, 0, 0, '', 0, 'image', '&alttext=&hspace=&vspace=&borsize=&align=none&name=&class=&id=&style=&attributes=', '', 'a:0:{}'),
(2, 'richtext', 'Text Place Holder 1', 'First Text Block', '', 0, 0, 0, '', 0, 'richtext', '&w=100%&h=300px', '\n', 'a:0:{}'),
(3, 'tag', 'Meta Tags', 'Choose search keywords relavant to page', 'HTML Meta Tags', 0, 0, 0, 'food||results||press||animal welfare||chicken||2 Sisters food group', 0, 'htmltag', '&tagname=search_meta&tagid=&class=&style=&attrib=', '\n', 'a:0:{}'),
(8, 'image', 'image2', 'image2', 'image2', 0, 0, 0, '1', 0, 'image', '&alttext=1&hspace=&vspace=&borsize=&align=none&name=sdffd&class=&id=&style=&attributes=', '\n', 'a:0:{}'),
(5, 'richtext', 'Second Text Block', 'Second Text Block', '', 0, 0, 0, '', 0, 'richtext', '&w=100%&h=300px', '\n', 'a:0:{}'),
(6, 'autotag', 'Autotag', 'Autotag', '', 0, 0, 0, '', 0, 'htmltag', '&tagname=div&tagid=&class=&style=&attrib=', '\n', 'a:0:{}');
So in summary a change needs to be made to make sure ’\n’ isn’t put in the deafult_text field when first creating a TV
I haven’t used any import method to create this new troubleome TV - it has purely been created from with the functionality of the manager screen