Skip to content

Commit

Permalink
chore: Configuration update, new testing field in Page
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Sep 1, 2022
1 parent a1d5335 commit 0a9ea18
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"symfony/phpunit-bridge": "5.4.*",
"symfony/web-profiler-bundle": "5.4.*",
"roadiz/doc-generator": "~2.0.0",
"roadiz/rozier": "~2.0.0",
"roadiz/rozier": "~2.0.6",
"roadiz/dts-generator": "~2.0.0",
"roadiz/openid": "~2.0.0",
"roadiz/documents": "~2.0.0",
Expand All @@ -100,7 +100,7 @@
"phpoffice/phpspreadsheet": "^1.15",
"rezozero/intervention-request-bundle": "~2.0.0",
"symfony/rate-limiter": "5.4.*",
"rezozero/tree-walker": "^1.1.0",
"rezozero/tree-walker": "^1.2.1",
"pimple/pimple": "*"
},
"config": {
Expand Down
6 changes: 3 additions & 3 deletions config/packages/api_platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ api_platform:
shared_max_age: '%env(int:HTTP_CACHE_SHARED_MAX_AGE)%'
# Default values of the "Vary" HTTP header.
vary: [ 'Accept', 'Authorization', 'Origin', 'Accept-Encoding', 'Content-Type' ]
invalidation:
enabled: true
varnish_urls: [ '%env(VARNISH_URL)%' ]
# invalidation:
# enabled: true
# varnish_urls: [ '%env(VARNISH_URL)%' ]
defaults:
pagination_client_items_per_page: true
pagination_items_per_page: 15
Expand Down
1 change: 0 additions & 1 deletion docker/php81-nginx-alpine/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ post_max_size = 128M
upload_max_filesize = 128M
expose_php = On
display_errors = On

14 changes: 14 additions & 0 deletions src/Resources/node-types/Page.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,20 @@
"excluded_from_serialization": false,
"indexed": false,
"visible": true
},
{
"position": 9.0,
"name": "folder_references",
"label": "Reference to folders",
"default_values": "# Entity class name\r\nclassname: RZ\\Roadiz\\CoreBundle\\Entity\\Folder\r\n# Displayable is the method used to display entity name\r\ndisplayable: getName\r\n# Same as Displayable but for a secondary information\r\nalt_displayable: getFullPath\r\n# Searchable entity fields\r\nsearchable:\r\n - folderName\r\norderBy:\r\n - field: position\r\n direction: ASC\r\n# Use a proxy entity\r\n# proxy:\r\n# classname: App\\Entity\\PositionedFolderGalleryBlock\r\n# self: nodeSource\r\n# relation: folder\r\n# # This order will preserve position\r\n# orderBy:\r\n# - field: position\r\n# direction: ASC",
"type": 27,
"expanded": false,
"node_type_name": "Page",
"universal": false,
"exclude_from_search": false,
"excluded_from_serialization": false,
"indexed": false,
"visible": true
}
],
"default_ttl": 0,
Expand Down

0 comments on commit 0a9ea18

Please sign in to comment.