Skip to content

Commit

Permalink
Nouveau bloc "Liste des sous-pages" (#148)
Browse files Browse the repository at this point in the history
* New 'Subpages list' component

* Fix code from wrong branch

* Fix code from wrong branch
  • Loading branch information
Ash-Crow authored Jun 5, 2024
1 parent 8cf0d63 commit 36a5264
Show file tree
Hide file tree
Showing 6 changed files with 19,294 additions and 172 deletions.
12,720 changes: 12,720 additions & 0 deletions blog/migrations/0016_alter_blogentrypage_body_alter_blogindexpage_body.py

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions content_manager/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,15 @@ class Meta:
("separator", SeparatorBlock(label=_("Separator"), group=_("Page structure"))),
("multicolumns", MultiColumnsWithTitleBlock(label=_("Multiple columns"), group=_("Page structure"))),
("fullwidthbackground", FullWidthBackgroundBlock(label=_("Full width background"), group=_("Page structure"))),
(
"subpageslist",
blocks.StaticBlock(
label=_("Subpages list"),
admin_text=_("A simple, alphabetical list of the subpages of the current page."),
template="content_manager/blocks/subpages_list.html",
group=_("Website structure"),
),
),
]

# See warning on https://docs.wagtail.org/en/latest/reference/streamfield/blocks.html#wagtail.blocks.RawHTMLBlock
Expand Down
Binary file modified content_manager/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit 36a5264

Please sign in to comment.