cms fixes
This commit is contained in:
parent
8dc23e37bc
commit
9454ccc5b8
@ -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;
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user