Skip to content

Commit

Permalink
Start work on pagetreeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Aug 23, 2024
1 parent d11c898 commit cd9eac6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion content_manager/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,12 +944,16 @@ class Meta:
template = "content_manager/blocks/full_width_background.html"


class PageTreeBlock(blocks.StructBlock):
page = blocks.PageChooserBlock(label=_("Parent page"))


class SideMenuBlock(blocks.StreamBlock):
html = blocks.RawHTMLBlock(
label="HTML",
help_text=_("Warning: Use HTML block with caution. Malicious code can compromise the security of the site."),
group=_("Expert syntax"),
)
pagetree = PageTreeBlock(label=_("Page tree"))

class Meta:
icon = "minus"
Expand Down

0 comments on commit cd9eac6

Please sign in to comment.