Skip to content

Remove formatted code block from default streamfield #43

@vsalvino

Description

@vsalvino

Topic of debate: the streamfield is extremely heavy when adding nested blocks. I'm thinking we could probably remove the Formatted Code block, since it is actually a bit if a pig due to the language selector dropdown, and is the least likely to be used by 99% of websites.

This would be something we would keep in the cms, just remove it from the default blocks on a web page. So it would give us another opportunity to figure out a clean and easy way for devs to add additional blocks to the streamfield without too much code.

I already have an idea, similar to how we have variables for CONTENT_BLOCKS etc, we could allow the user to override CONTENT_BLOCKS so they can "plug in" their desired blocks, and all the WebPages would automatically pull from the overridden CONTENT_BLOCKS (would still require a migration, but seems relatively painless otherwise). This would function similar to the CODERED_THEME_* settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions