Skip to content

Commit

Permalink
[CHG] Ported new IndexPage settings to the sandbox and the cookiecutt…
Browse files Browse the repository at this point in the history
…er template
  • Loading branch information
sveetch committed Sep 19, 2024
1 parent 6ecb668 commit a4122af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,13 @@ class Base(StyleguideMixin, DRFMixin, RichieCoursesConfigurationMixin, Configura
"body > svg, #main-menu, .body-footer, .body-mentions"
)

# Wheither you can create PageIndex extension on page through toolbar if true or
# just editing existing extension if false
RICHIE_PAGEINDEX_ALLOW_CREATION = False

# Define which node level can be processed to search for pageindex extension
RICHIE_PAGEINDEX_MENU_ALLOWED_LEVEL = 0

# pylint: disable=invalid-name
@property
def ENVIRONMENT(self):
Expand Down
7 changes: 7 additions & 0 deletions sandbox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,13 @@ class Base(StyleguideMixin, DRFMixin, RichieCoursesConfigurationMixin, Configura
environ_prefix=None,
)

# Wheither you can create PageIndex extension on page through toolbar if true or
# just editing existing extension if false
RICHIE_PAGEINDEX_ALLOW_CREATION = False

# Define which node level can be processed to search for pageindex extension
RICHIE_PAGEINDEX_MENU_ALLOWED_LEVEL = 0

@classmethod
def _get_environment(cls):
"""Environment in which the application is launched."""
Expand Down

0 comments on commit a4122af

Please sign in to comment.