Skip to content

Commit

Permalink
fix: page in menuPH block data
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Oct 14, 2021
1 parent 7e60c33 commit b291bfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_requirements(fname='requirements.txt'):

setup(
name="unicms",
version='0.26.6',
version='0.26.7',
description="uniCMS is a Django Web Content Management System",
long_description=README,
long_description_content_type='text/markdown',
Expand Down
3 changes: 2 additions & 1 deletion src/cms/templates/placeholders.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def __init__(self, context:dict, content:dict):
def build_data_dict(self):
data = {'items': self.entry.menu.get_items(lang=self.language,
parent__isnull=True),
'request': self.request}
'request': self.request,
'page': self.page}
return {**self.content,**data}


Expand Down

0 comments on commit b291bfe

Please sign in to comment.