Version 6.x.x Source

Table Name: tabWeb Page

Page to show on the website

Fields

Sr Fieldname Type Label Options
1 section_title Section Break Title
2 title Data Title

Title / headline of your page

3 show_title Check Show Title
4 slideshow Link Slideshow

Begin this page with a slideshow of images

Website Slideshow
5 cb1 Column Break
6 page_name Data Page Name

Page url name (auto-generated)

7 published Check Published
8 sb1 Section Break Content

Page content

9 main_section Text Editor Main Section

Content in markdown format that appears on the main side of your page

10 fold_10 Fold
11 custom_javascript Section Break Custom Javascript
12 insert_code Check Insert Code

Add code as <script>

13 javascript Code Javascript
Javascript
14 custom_css Section Break Custom CSS
15 insert_style Check Insert Style
16 css Code CSS
CSS
17 section_break_17 Section Break
18 enable_comments Check Enable Comments
19 text_align Select Text Align
Left
Center
Right
20 column_break_20 Column Break
21 parent_web_page Link Parent Web Page Web Page
22 parent_website_route Read Only Parent Website Route
23 idx Int Priority

0 is highest

24 template_path Small Text Template Path
25 sb2 Section Break
26 description Small Text Description

Description for search engine optimization.

27 header Text Header

HTML for header section. Optional


Controller

frappe.website.doctype.web_page.web_page

Class WebPage

Inherits from frappe.website.website_generator.WebsiteGenerator

add_hero (self, context)

Add a hero element if specified in content or hooks. Hero elements get full page width.


add_index (self, context)

Add index, next button if {index}, {next} is present.


check_for_redirect (self, context)

No docs


get_context (self, context)

No docs


get_dynamic_context (self, context)

update context from .py and load sidebar from _sidebar.json if either exists


get_feed (self)

No docs


get_static_content (self, context)

No docs


render_dynamic (self, context)

No docs


set_breadcrumbs (self, context)

Build breadcrumbs template (deprecated)


set_metatags (self, context)

No docs


set_title_and_header (self, context)

Extract and set title and header from content or context.


validate (self)

No docs



frappe.website.doctype.web_page.web_page.check_broken_links ()

No docs


Linked In: