Skip to content

Commit

Permalink
Merge pull request #59 from kitconcept/updatetolatestthemingschemaand…
Browse files Browse the repository at this point in the history
…vltandvolto

Update to latest Volto and VLT, plus adding the latest developments o…
  • Loading branch information
sneridagh authored Dec 18, 2024
2 parents 035958b + 81764cb commit fd10263
Show file tree
Hide file tree
Showing 3 changed files with 1,115 additions and 79 deletions.
40 changes: 40 additions & 0 deletions backend/src/kitconcept/intranet/behaviors/theming.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class ITheming(model.Schema):
"secondary_color",
"footer_links",
"footer_logos",
"footer_logos_container_width",
"footer_logos_size",
],
)

Expand Down Expand Up @@ -147,6 +149,44 @@ class ITheming(model.Schema):
widget="",
)

directives.widget(
"footer_logos_container_width",
frontendOptions={
"widget": "blockWidth",
"widgetProps": {
"filterActions": ["default", "layout"],
"actions": [
{
"name": "default",
"label": "Default",
},
{
"name": "layout",
"label": "Layout",
},
],
},
},
)
footer_logos_container_width = TextLine(
title=_("Footer logos container width"),
default="default",
required=False,
)

directives.widget(
"footer_logos_size",
frontendOptions={
"widget": "sizeWidget",
"widgetProps": {"filterActions": ["s", "l"]},
},
)
footer_logos_size = TextLine(
title=_("Footer logos size"),
default="s",
required=False,
)

directives.widget("footer_links", frontendOptions={"widget": "footerLinks"})
footer_links = JSONField(
title=_("Footer links"),
Expand Down
2 changes: 1 addition & 1 deletion frontend/mrs.developer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"package": "@plone/volto",
"url": "[email protected]:plone/volto.git",
"https": "https://github.com/plone/volto.git",
"tag": "18.2.3"
"tag": "18.4.0"
},
"volto-light-theme": {
"output": "./packages",
Expand Down
Loading

0 comments on commit fd10263

Please sign in to comment.