mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
cms fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#body_div {
|
#body_div {
|
||||||
{% if doc.background_image %}
|
{% if doc.background_image %}
|
||||||
background: url("files/{{ doc.background_image }}") repeat;
|
background: url("../files/{{ doc.background_image }}") repeat;
|
||||||
{% elif doc.background_color %}
|
{% elif doc.background_color %}
|
||||||
background-color: #{{ doc.background_color }};
|
background-color: #{{ doc.background_color }};
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
|||||||
@@ -33,6 +33,9 @@ class DocType:
|
|||||||
self.doc.custom_css = temp.render(doc = self.doc)
|
self.doc.custom_css = temp.render(doc = self.doc)
|
||||||
if self.doc.add_css:
|
if self.doc.add_css:
|
||||||
self.doc.custom_css += '\n\n/* User CSS */\n\n' + 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
|
from webnotes.session_cache import clear_cache
|
||||||
clear_cache('Guest')
|
clear_cache('Guest')
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ class DocType:
|
|||||||
make_web_core()
|
make_web_core()
|
||||||
|
|
||||||
get_obj('Page', 'blog').write_cms_page(force=True)
|
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')
|
webnotes.msgprint('Rebuilt all blogs and pages')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user