Hi!
It's been awhile...
I am entering HTML directly into the template DB (using CSV) but the template file isn't read by Communimail.
What could be wrong?
Also, is there an update from 1.2
Thanks!
CommuniMail - HTML Entered Directly Into The Template Fails
Re: HTML Entered Directly Into The Template Fails
Not sure what are you trying to do. Please clarify.RickSanson wrote:Hi!
It's been awhile...
I am entering HTML directly into the template DB (using CSV) but the template file isn't read by Communimail.
What could be wrong?
Also, is there an update from 1.2
Thanks!
-
- Posts: 36
- Joined: Mar 14, 2007 6:27 pm
For some reason, the TinyMCE editor doesn't like the HTML I am copying into it. So I am trying to add my HTML directly into the /db/Templates file.
TEMPL_ID,USER_ID,TITLE,BODY_TEXT,BODY_HTML
2,1,"NL02_HTML.html",,"My HTML is here"
After entering the HTML into the Templates file, Communimail either no longer see the Template file or it returns and error DB Error: Can't add Template --"
My real problem is that I have "known good" HTML but TinyMCE (I guess) doesn't like it at all. I have upgraded and downgraded TinyMCE with no success.
When using Dreamweaver for pure HTML code I cannot get any of Communiamil to work properly...
Thank you!
TEMPL_ID,USER_ID,TITLE,BODY_TEXT,BODY_HTML
2,1,"NL02_HTML.html",,"My HTML is here"
After entering the HTML into the Templates file, Communimail either no longer see the Template file or it returns and error DB Error: Can't add Template --"
My real problem is that I have "known good" HTML but TinyMCE (I guess) doesn't like it at all. I have upgraded and downgraded TinyMCE with no success.
When using Dreamweaver for pure HTML code I cannot get any of Communiamil to work properly...
Thank you!
-
- Posts: 36
- Joined: Mar 14, 2007 6:27 pm
RickSanson wrote:For some reason, the TinyMCE editor doesn't like the HTML I am copying into it. So I am trying to add my HTML directly into the /db/Templates file.
TEMPL_ID,USER_ID,TITLE,BODY_TEXT,BODY_HTML
2,1,"NL02_HTML.html",,"My HTML is here"
After entering the HTML into the Templates file, Communimail either no longer see the Template file or it returns and error DB Error: Can't add Template --"
My real problem is that I have "known good" HTML but TinyMCE (I guess) doesn't like it at all. I have upgraded and downgraded TinyMCE with no success.
When using Dreamweaver for pure HTML code I cannot get any of Communiamil to work properly...
Thank you!
You cant just insert HTML in database. That will not work because of quoting.
Looks like your HTML code is not valid in therms of TinyMCE.
If want quick solution - you can turn off TinyMCE by commenting its init on line 62 of file templates/templform.html.
You need to comment following call:
tinyMCE.init({
theme : "advanced",
mode : "exact",
elements : "BODY_HTML",
relative_urls : false,
remove_script_host : false,
content_css : "example_advanced.css",
// extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
plugins : "table",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_buttons1 : "bold,italic,underline,separator,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,forecolor",
theme_advanced_buttons1_add : "bullist,image,a,link,hr,separator,undo,redo",
theme_advanced_buttons2 : "tablecontrols, code",
theme_advanced_buttons3 : "",
//invalid_elements : "a",
// theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
debug : false,
oninit : "myInit"
});
-
- Posts: 36
- Joined: Mar 14, 2007 6:27 pm