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

📮 collections #71

Merged
merged 20 commits into from
Oct 31, 2023
Merged

📮 collections #71

merged 20 commits into from
Oct 31, 2023

Conversation

mrharpo
Copy link
Contributor

@mrharpo mrharpo commented Oct 6, 2022

Collections

Collections model

  • introduction
    • Rich Text
  • cover_image
  • content
    • StreamField
      • Reorderable blocks of content
      • Available blocks
        • ContentBlock / ContactImageBlock
          • interviews
          • archival_footage
          • photographs
          • original_footage
          • programs
          • related_content
        • Other blocks:
          • credits
            • RichTextBlock
        • Generic Blocks:
          • Heading
          • Text
          • Image

Blocks

Custom block types to represent media

ContentBlock

  • Generic content block
    • title
    • link

ContentImageBlock

  • Inherits from ContentBlock
  • image
    • Custom image field
  • get_api_representation
    • Calls super() to use inherited class
    • Adds custom image rendition to results

Each custom block type is used inside a ListBlock to allow only that type of block to exist within it.

Each subblock includes the singular name for label, and the icon of the outer group for clarity.

Screenshot from 2022-10-19 14-12-19

Closes #10

@mrharpo mrharpo added the enhancement ➕ New feature or request label Oct 6, 2022
@mrharpo mrharpo added this to the v0.3.0 Collections 🖼️ milestone Oct 6, 2022
@mrharpo mrharpo requested a review from afred October 6, 2022 21:34
@mrharpo mrharpo self-assigned this Oct 6, 2022
@mrharpo mrharpo marked this pull request as ready for review October 19, 2022 21:23
Copy link
Contributor

@afred afred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 as mentioned in standup, will maybe squash all of the migrations later

@afred afred merged commit 24512db into main Oct 31, 2023
3 checks passed
@afred afred deleted the 10-collections branch October 31, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ➕ New feature or request
Projects
Status: ✅ Done
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

Create Special Collections model
2 participants