diff --git a/website/doctype/web_page/templates/generators/web_page.html b/website/doctype/web_page/templates/generators/web_page.html index e7439fd364..2804683f6b 100644 --- a/website/doctype/web_page/templates/generators/web_page.html +++ b/website/doctype/web_page/templates/generators/web_page.html @@ -13,6 +13,15 @@
  • {{ title }}
  • {%- endif %} + {%- endblock %} + + {% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %} +
    + {{ main_section }} +
    + + {# toc, parent, child, next sibling #} + {% block post_content -%} {% if show_toc and toc_list -%}

    Contents

    @@ -23,15 +32,6 @@
    {%- endif %} - {%- endblock %} - - {% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %} -
    - {{ main_section }} -
    - - {# parent, child, next sibling #} - {% block post_content -%} {% if links and links.get("parent") -%}
    diff --git a/website/doctype/website_settings/website_settings.py b/website/doctype/website_settings/website_settings.py index f847b54705..dd0b549570 100644 --- a/website/doctype/website_settings/website_settings.py +++ b/website/doctype/website_settings/website_settings.py @@ -4,11 +4,9 @@ from __future__ import unicode_literals import webnotes from webnotes import _, msgprint +from webnotes.model.controller import DocListController -class DocType: - def __init__(self, d, dl): - self.doc, self.doclist = d, dl - +class DocType(DocListController): def validate(self): self.validate_top_bar_items() self.validate_footer_items()