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

Integrate attachments into pages #136

Closed
frcroth opened this issue Jul 19, 2022 · 1 comment · Fixed by #166
Closed

Integrate attachments into pages #136

frcroth opened this issue Jul 19, 2022 · 1 comment · Fixed by #166

Comments

@frcroth
Copy link
Contributor

frcroth commented Jul 19, 2022

Make it possible to attach documents to minutes and information pages.

@frcroth frcroth changed the title Integrate attachments into minutes Integrate attachments into pages Jul 20, 2022
@frcroth frcroth added this to the Launch milestone Jul 25, 2022
@frcroth frcroth self-assigned this Sep 5, 2022
@frcroth
Copy link
Contributor Author

frcroth commented Sep 28, 2022

This is in my opinion the only (non-UI) item that is really holding up the launch. The migration is also ready apart from this and localization. I have tried to implement attachments multiple times but have not been successful. Here were my ideas:

  • Create a new model that extends AbstractDocument. Then every page has an abitrary amount of attachments. Since attachments would need to be stored on pages, it would make sense to also create and manage them in the page edit view. I did not manage to create a widget that allows for the creation and deletion of documents.
  • Create a new model that extends AbstractDocument. Also, this model includes a group field that determines which group "owns" the attachment. Only users within that group should be able to see it when selecting attachments in the page edit. I did not yet find out how to limit the selection in a field panel, whoever that should be doable. This would mean attachments would need to be created in a seperate admin view (like documents right now) that also allows for the assignment of documents. Perhaps this is the easiest way.
  • Use documents as attachments. To have some rights management, use the collections. Since collections do not really interact with groups, some connection would need to be created.

Displaying the attachments on the page and creating download links was never a problem. Problems mostly arose from the rights management.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants