[ https://issues.apache.org/jira/browse/OFBIZ-4300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Antivackis updated OFBIZ-4300: -------------------------------------- Description: Today doctype is either generated by java (hard coded) or ftl macros. The idea is : - to externalize doctypes to a config file (framework/base/config/doctype.properties) - define a default doctype in the previous config file for all ofbiz application - allow a specific doctype at an application level (web.xml) - allow a specific doctype at a view level (controller.xml) I imagine the config file like this : {code:title=/framework/base/config/doctype.properties|borderStyle=solid} #### # OFBiz Doctype properties File #### w3c.html-4.01-strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> w3c.html-4.01-transitional=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> w3c.html-4.01-frameset=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> w3c.xhtml-1.0-transitional=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> w3c.xhtml-1.0-strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> w3c.xhtml-1.0-frameset=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> w3c.xhtml-1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> w3c.html5=<!DOCTYPE HTML> {code} was: Today doctype is either generated by java (hard coded) or ftl macros. The idea is : - to externalize doctypes to a config file (framework/base/config/doctype.properties) - define a default doctype in the previous config file for all ofbiz application - allow a specific doctype at an application level (web.xml) - allow a specific doctype at a view level (controller.xml) > Make doctype as a configuration > ------------------------------- > > Key: OFBIZ-4300 > URL: https://issues.apache.org/jira/browse/OFBIZ-4300 > Project: OFBiz > Issue Type: Sub-task > Reporter: Patrick Antivackis > Priority: Minor > > Today doctype is either generated by java (hard coded) or ftl macros. > The idea is : > - to externalize doctypes to a config file > (framework/base/config/doctype.properties) > - define a default doctype in the previous config file for all ofbiz > application > - allow a specific doctype at an application level (web.xml) > - allow a specific doctype at a view level (controller.xml) > I imagine the config file like this : > {code:title=/framework/base/config/doctype.properties|borderStyle=solid} > #### > # OFBiz Doctype properties File > #### > w3c.html-4.01-strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > w3c.html-4.01-transitional=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 > Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> > w3c.html-4.01-frameset=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 > Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> > w3c.xhtml-1.0-transitional=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 > Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > w3c.xhtml-1.0-strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > w3c.xhtml-1.0-frameset=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 > Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> > w3c.xhtml-1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> > w3c.html5=<!DOCTYPE HTML> > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira