Commit 32da2ce4 authored by Boris Kocherov's avatar Boris Kocherov

support png,html,css

parent b74bb6d9
...@@ -382,6 +382,7 @@ ...@@ -382,6 +382,7 @@
switch (ext) { switch (ext) {
case "template": case "template":
case "html": case "html":
case "htm":
path = "web_page_module"; path = "web_page_module";
xmldoc.portal_type = "Web Page"; xmldoc.portal_type = "Web Page";
xmldoc.content_type = "text/html"; xmldoc.content_type = "text/html";
...@@ -391,12 +392,18 @@ ...@@ -391,12 +392,18 @@
xmldoc.portal_type = "Web Script"; xmldoc.portal_type = "Web Script";
xmldoc.content_type = "text/javascript"; xmldoc.content_type = "text/javascript";
break; break;
case "css":
path = "web_page_module";
xmldoc.portal_type = "Web Style";
xmldoc.content_type = "text/css";
break;
case "appcache": case "appcache":
path = "web_page_module"; path = "web_page_module";
xmldoc.portal_type = "Web Manifest"; xmldoc.portal_type = "Web Manifest";
xmldoc.content_type = "application/json"; xmldoc.content_type = "application/json";
xmldoc.text_content = id; xmldoc.text_content = id;
break; break;
case "png":
case "gif": case "gif":
case "jpg": case "jpg":
path = "image_module"; path = "image_module";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment