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 some more block types #1573

Merged
merged 11 commits into from
Jul 26, 2024
Merged

add some more block types #1573

merged 11 commits into from
Jul 26, 2024

Conversation

TomWoodward
Copy link
Member

adds

  • ability to link to anchor id on current page (this already exists in the rich text editor, and they call it "anchor" there)
  • adds ability to set id of sections
  • adds quote construct
  • adds links group construct with style option. reserve the right to change the names of those styles

@TomWoodward TomWoodward requested a review from mwvolo July 25, 2024 03:21
@@ -105,6 +109,11 @@ class RootPage(Page):
('image', APIImageChooserBlock(required=False)),
('image_alt', blocks.CharBlock(required=False)),
('config', blocks.StreamBlock([
('id', blocks.RegexBlock(
Copy link
Member

Choose a reason for hiding this comment

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

are the options for this going to be documented somewhere?
how do you expect this will be used?

Copy link
Member Author

Choose a reason for hiding this comment

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

the id is the HTML id, which can be used in anchor links to link to a part of the page

i should probably go through and add some more useful help text to all the options. i was also gonna make some persistent pages on dev to showcase the different content types

@mwvolo mwvolo merged commit ab97c60 into main Jul 26, 2024
2 checks passed
@mwvolo mwvolo deleted the more-block-types branch July 26, 2024 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants