Skip to content

Commit

Permalink
Merge pull request #78 from plone/useSlateDefaultContent
Browse files Browse the repository at this point in the history
Use slate as default text block in default contents
  • Loading branch information
davisagli authored Jul 28, 2022
2 parents f1024a0 + 8eb83f6 commit 94550c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions news/77.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Use slate as default text block in default contents for ``default-homepage`` and
``multilingual`` profile.
[sneridagh]
2 changes: 1 addition & 1 deletion src/plone/volto/profiles.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
description="Creates a default page for the site"
provides="Products.GenericSetup.interfaces.EXTENSION"
directory="profiles/homepage"
post_handler=".setuphandlers.create_default_homepage_draftjs"
post_handler=".setuphandlers.create_default_homepage"
/>

<genericsetup:registerProfile
Expand Down
2 changes: 1 addition & 1 deletion src/plone/volto/setuphandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def post_install_coresandbox(context):
def post_install_multilingual(context):
"""Post install script for multilingual fixture"""
enable_pam(context)
create_default_homepage(context, block_type="draftJS")
create_default_homepage(context)


def enable_pam(portal):
Expand Down

0 comments on commit 94550c8

Please sign in to comment.