Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog
5.0.15 (unreleased)
-------------------

- Nothing changed yet.
- Updated trasparenza view [daniele].


5.0.14 (2025-02-06)
Expand Down
24 changes: 10 additions & 14 deletions src/design/plone/policy/browser/trasparenza.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,25 +133,21 @@ def generate_listing_query(obj):
title_uuid = str(uuid4())
listing_uuid = str(uuid4())
data = {}
query = [
{
"i": "path",
"o": "plone.app.querystring.operation.string.path",
"v": "{uid}::1".format(uid=getattr(obj, "_plone.uuid")),
}
]

data["blocks"] = {
title_uuid: {"@type": "title"},
listing_uuid: {
"@type": "listing",
"block": listing_uuid,
"query": [],
"querystring": {
"query": query,
"sort_on": obj.get("sort_on", "getObjPositionInParent"),
"sort_order": obj.get("sort_reversed", False),
"b_size": obj.get("item_count", "30"),
},
"headlineTag": "h2",
"variation": "simpleCard",
"show_icon": "true",
"hide_dates": "false",
"show_section": "true",
"show_type": "false",
"show_description": "true",
"show_detail_link": "false",
"show_path_filters": "false",
},
}
data["blocks_layout"] = {"items": [title_uuid, listing_uuid]}
Expand Down
Loading