commit | 9454ccc5b819db2622ef7181dc5cd08832f39a79 | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Wed May 09 14:35:00 2012 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Wed May 09 14:35:00 2012 +0530 |
tree | d35c8fcfc2af01a84c6cdace88691ac8b0376955 | |
parent | 8dc23e37bc36b3828fa010a01dc36021fdf4c260 [diff] |
cms fixes
diff --git a/erpnext/website/doctype/style_settings/custom_template.css b/erpnext/website/doctype/style_settings/custom_template.css index 6fe8ce5..0398325 100644 --- a/erpnext/website/doctype/style_settings/custom_template.css +++ b/erpnext/website/doctype/style_settings/custom_template.css
@@ -1,6 +1,6 @@ #body_div { {% if doc.background_image %} - background: url("files/{{ doc.background_image }}") repeat; + background: url("../files/{{ doc.background_image }}") repeat; {% elif doc.background_color %} background-color: #{{ doc.background_color }}; background-image: none;
diff --git a/erpnext/website/doctype/style_settings/style_settings.py b/erpnext/website/doctype/style_settings/style_settings.py index f47a427..69e230b 100644 --- a/erpnext/website/doctype/style_settings/style_settings.py +++ b/erpnext/website/doctype/style_settings/style_settings.py
@@ -33,6 +33,9 @@ self.doc.custom_css = temp.render(doc = self.doc) if self.doc.add_css: self.doc.custom_css += '\n\n/* User CSS */\n\n' + self.doc.add_css + + from webnotes.cms.make import make_web_core + make_web_core() from webnotes.session_cache import clear_cache clear_cache('Guest')
diff --git a/erpnext/website/doctype/website_settings/website_settings.py b/erpnext/website/doctype/website_settings/website_settings.py index 9693615..6f0c4da 100644 --- a/erpnext/website/doctype/website_settings/website_settings.py +++ b/erpnext/website/doctype/website_settings/website_settings.py
@@ -50,6 +50,7 @@ make_web_core() get_obj('Page', 'blog').write_cms_page(force=True) + get_obj('Page', 'Login Page').write_cms_page(force=True) webnotes.msgprint('Rebuilt all blogs and pages')