cms fixes

This commit is contained in:
Rushabh Mehta 2012-05-09 14:35:00 +05:30
parent 8dc23e37bc
commit 9454ccc5b8
3 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -33,6 +33,9 @@ class DocType:
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')

View File

@ -50,6 +50,7 @@ class DocType:
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')