Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add preview_image_link behavior. Add initial content #35

Merged
merged 1 commit into from
May 17, 2024
Merged
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
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ build-backend: ## Build Backend
create-site: ## Create a Plone site with default content
$(MAKE) -C "./backend/" create-site

.PHONY: create-site-force
create-site-force: ## Create a Plone site with default content
$(MAKE) -C "./backend/" create-site-force

.PHONY: start-backend
start-backend: ## Start Plone Backend
$(MAKE) -C "./backend/" start
Expand Down
2 changes: 2 additions & 0 deletions backend/mx.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
; example how to override a package version
; version-overrides =
; example.package==2.1.0a2
version-overrides =
plone.volto==4.4.1

; example section to use packages from git
; [example.contenttype]
Expand Down
2 changes: 1 addition & 1 deletion backend/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
python_requires=">=3.8",
install_requires=[
"setuptools",
"plone.volto",
"plone.volto>=4.4.1", # fix preview_image_link behavior issue
"plone.distribution>=2.0.0a1",
# "plone.api",
"kitconcept.solr",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"@id": "/images/donald-giannatti-wj1d-qiosee-unsplash.jpg",
"@type": "Image",
"UID": "0c1eaeaca2cc47f48eae213121a6f7a8",
"allow_discussion": false,
"contributors": [],
"created": "2024-05-16T20:18:15+00:00",
"creators": [
"admin"
],
"description": "",
"effective": null,
"exclude_from_nav": false,
"expires": null,
"exportimport.constrains": {},
"exportimport.conversation": [],
"exportimport.versions": {},
"id": "donald-giannatti-wj1d-qiosee-unsplash.jpg",
"image": {
"blob_path": "0c1eaeaca2cc47f48eae213121a6f7a8/image/donald-giannatti-Wj1D-qiOseE-unsplash (4).jpg",
"content-type": "image/jpeg",
"filename": "donald-giannatti-Wj1D-qiOseE-unsplash (4).jpg",
"height": 3280,
"size": 1762401,
"width": 4928
},
"is_folderish": false,
"language": "##DEFAULT##",
"layout": "image_view",
"lock": {},
"modified": "2024-05-16T20:20:24+00:00",
"parent": {
"@id": "/images",
"@type": "Document",
"UID": "6b1c57b5651546eab14fd5e0e1e32aeb",
"description": "",
"image_field": null,
"image_scales": {},
"review_state": "published",
"title": "Images",
"type_title": "Page"
},
"review_state": null,
"rights": "",
"searchwords": [],
"showinsearch": true,
"subjects": [],
"title": "donald-giannatti-Wj1D-qiOseE-unsplash.jpg",
"type_title": "Image",
"version": "current",
"workflow_history": {},
"working_copy": null,
"working_copy_of": null
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"@id": "/about",
"@type": "Document",
"UID": "1e7262f173a54700a5ca2578506b1bc1",
"allow_discussion": false,
"blocks": {
"9bdc943a-3a45-4cf5-854b-8f5238cb714a": {
"@type": "slate"
},
"bafa192c-a61e-499b-9e22-f1799d22aaad": {
"@type": "title"
},
"c30a11c1-a250-47b2-bab3-63380c662442": {
"@type": "image",
"align": "full",
"credit": {},
"description": "",
"image_field": "image",
"size": "l",
"title": "codioful-formerly-gradienta-lweK7Wme_jo-unsplash.jpg",
"url": "../resolveuid/75f2d0b5a1f04f7a922c47be34f9f532"
}
},
"blocks_layout": {
"items": [
"bafa192c-a61e-499b-9e22-f1799d22aaad",
"c30a11c1-a250-47b2-bab3-63380c662442",
"9bdc943a-3a45-4cf5-854b-8f5238cb714a"
]
},
"contributors": [],
"created": "2024-05-16T20:19:27+00:00",
"creators": [
"admin"
],
"description": "",
"effective": null,
"exclude_from_nav": false,
"expires": null,
"exportimport.constrains": {},
"exportimport.conversation": [],
"exportimport.versions": {},
"id": "about",
"is_folderish": true,
"language": "##DEFAULT##",
"layout": "document_view",
"lock": {
"locked": false,
"stealable": true
},
"modified": "2024-05-16T20:21:37+00:00",
"parent": {
"@id": "/",
"@type": "Plone Site",
"UID": "plone_site_root",
"description": "A Plone Intranet distribution provided by kitconcept GmbH",
"title": "Plone Intranet by kitconcept",
"type_title": "Plone Site"
},
"preview_caption_link": null,
"review_state": "private",
"rights": "",
"searchwords": [],
"showinsearch": true,
"subjects": [],
"title": "About",
"type_title": "Page",
"version": "current",
"workflow_history": {
"simple_publication_workflow": [
{
"action": null,
"actor": "admin",
"comments": "",
"review_state": "private",
"time": "2024-05-16T20:19:27+00:00"
}
]
},
"working_copy": null,
"working_copy_of": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"@id": "/features/theme",
"@type": "Document",
"UID": "239b6e7bb69e4cd79b71be7a4e90a285",
"allow_discussion": false,
"blocks": {
"8f93decd-ecaa-4cb2-bad3-2a0198b87cd1": {
"@type": "title"
},
"dea1bfe1-28eb-4f61-8264-309d8ccc46f3": {
"@type": "image",
"align": "full",
"credit": {},
"description": "",
"image_field": "image",
"size": "l",
"title": "jr-korpa-SFT9G3pAxLY-unsplash.jpg",
"url": "../../resolveuid/5f1077b5414743429689927de357c350"
},
"fa4c83af-3fa5-45d9-b465-fbfb55d72af1": {
"@type": "slate"
}
},
"blocks_layout": {
"items": [
"8f93decd-ecaa-4cb2-bad3-2a0198b87cd1",
"dea1bfe1-28eb-4f61-8264-309d8ccc46f3",
"fa4c83af-3fa5-45d9-b465-fbfb55d72af1"
]
},
"contributors": [],
"created": "2024-05-16T20:18:45+00:00",
"creators": [
"admin"
],
"description": "Volto Light Theme, a beautifully crafted Plone theme with a minimalistic design that let's your intranet content shine.",
"effective": null,
"exclude_from_nav": false,
"expires": null,
"exportimport.constrains": {},
"exportimport.conversation": [],
"exportimport.versions": {},
"id": "theme",
"is_folderish": true,
"language": "##DEFAULT##",
"layout": "document_view",
"lock": {
"locked": false,
"stealable": true
},
"modified": "2024-05-16T20:40:54+00:00",
"parent": {
"@id": "/features",
"@type": "Document",
"UID": "f29a0a79ff974cbab0ea9b016944336a",
"description": "",
"image_field": null,
"image_scales": {},
"review_state": "private",
"title": "Features",
"type_title": "Page"
},
"preview_caption_link": null,
"review_state": "private",
"rights": "",
"searchwords": [],
"showinsearch": true,
"subjects": [],
"title": "Theme",
"type_title": "Page",
"version": "current",
"workflow_history": {
"simple_publication_workflow": [
{
"action": null,
"actor": "admin",
"comments": "",
"review_state": "private",
"time": "2024-05-16T20:18:45+00:00"
}
]
},
"working_copy": null,
"working_copy_of": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"@id": "/images/vinicius-amnx-amano-wrm_cnrp53e-unsplash.jpg",
"@type": "Image",
"UID": "24d00ed0888f4d8a97230123f88d74e2",
"allow_discussion": false,
"contributors": [],
"created": "2024-05-16T20:18:15+00:00",
"creators": [
"admin"
],
"description": "",
"effective": null,
"exclude_from_nav": false,
"expires": null,
"exportimport.constrains": {},
"exportimport.conversation": [],
"exportimport.versions": {},
"id": "vinicius-amnx-amano-wrm_cnrp53e-unsplash.jpg",
"image": {
"blob_path": "24d00ed0888f4d8a97230123f88d74e2/image/vinicius-amnx-amano-wRM_cNrP53E-unsplash.jpg",
"content-type": "image/jpeg",
"filename": "vinicius-amnx-amano-wRM_cNrP53E-unsplash.jpg",
"height": 4022,
"size": 2823846,
"width": 6034
},
"is_folderish": false,
"language": "##DEFAULT##",
"layout": "image_view",
"lock": {},
"modified": "2024-05-16T20:18:15+00:00",
"parent": {
"@id": "/images",
"@type": "Document",
"UID": "6b1c57b5651546eab14fd5e0e1e32aeb",
"description": "",
"image_field": null,
"image_scales": {},
"review_state": "published",
"title": "Images",
"type_title": "Page"
},
"review_state": null,
"rights": "",
"searchwords": [],
"showinsearch": true,
"subjects": [],
"title": "vinicius-amnx-amano-wRM_cNrP53E-unsplash.jpg",
"type_title": "Image",
"version": "current",
"workflow_history": {},
"working_copy": null,
"working_copy_of": null
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"@id": "/images/sean-sinclair-5jmvwxz0qhm-unsplash.jpg",
"@type": "Image",
"UID": "28985e382c0f4147bb5ea95c9ac8085e",
"allow_discussion": false,
"contributors": [],
"created": "2024-05-16T20:18:15+00:00",
"creators": [
"admin"
],
"description": "",
"effective": null,
"exclude_from_nav": false,
"expires": null,
"exportimport.constrains": {},
"exportimport.conversation": [],
"exportimport.versions": {},
"id": "sean-sinclair-5jmvwxz0qhm-unsplash.jpg",
"image": {
"blob_path": "28985e382c0f4147bb5ea95c9ac8085e/image/sean-sinclair-5JmvwXZ0QHM-unsplash.jpg",
"content-type": "image/jpeg",
"filename": "sean-sinclair-5JmvwXZ0QHM-unsplash.jpg",
"height": 4000,
"size": 1308663,
"width": 6000
},
"is_folderish": false,
"language": "##DEFAULT##",
"layout": "image_view",
"lock": {},
"modified": "2024-05-16T20:18:15+00:00",
"parent": {
"@id": "/images",
"@type": "Document",
"UID": "6b1c57b5651546eab14fd5e0e1e32aeb",
"description": "",
"image_field": null,
"image_scales": {},
"review_state": "published",
"title": "Images",
"type_title": "Page"
},
"review_state": null,
"rights": "",
"searchwords": [],
"showinsearch": true,
"subjects": [],
"title": "sean-sinclair-5JmvwXZ0QHM-unsplash.jpg",
"type_title": "Image",
"version": "current",
"workflow_history": {},
"working_copy": null,
"working_copy_of": null
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading