Replies: 2 comments 6 replies
-
No takers? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mjmare I think you can achieve some of what you’re after either with collections (one per page or part of the site) as a user of the CMS, or by configuring Django’s Collections are meant to be something users set up without necessarily being tightly integrated with pages, but I imagine you could do more as a dev to auto-create collections for documents matching pages. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
AFAICT whenever I upload a file to WT it will be dumped into the Media/documents folder (or some subfolder).
A user can reference the document with the DocumentChooser widget from any page. Makes sense in the general context of HTML pages. One could say that the document is not owned by any page.
Now I'd like to have a page "own" its documents. IOW documents uploaded within the page's context are stored in the page instance or in tight connection with that page, and are not selectable from other pages. When the page is deleted, I want the documents to be deleted as well.
Hope this makes sense.
I think my solution derives from the fact that I don't like the lack of structure of the documents folder.
Maybe the Wagtail way dictates some other solution. Any suggestions welcome!
Beta Was this translation helpful? Give feedback.
All reactions