Extensible blocks
@jlchilders11 がすでに取り組んでいます。
2021年11月17日 から。
評価
この issue はまだ評価されていません。
説明
Is your feature request related to a problem?
The blocks provided by coderedcms are great but they are difficult to extend consistently. E.g. adding a code block to the CONTENT_STREAMBLOCKS is currently only possible by overriding the body in all of the page models where this is required.
Describe the solution you'd like
#43 hinted on a solution that has so far not been implemented (correct me if I'm wrong). It would probably require all *_STREAMBLOCK globals in blocks/__init__.py to be converted to functions that will assemble the list of blocks depending on settings during the model construction. The setting could be a dictionary with entries pointing to a module with global list variables, e.g. something like this:
ADDITIONAL_BLOCKS = 'website.blocks' # eg. contains CONTENT_STREAMBLOCKS
Describe alternatives you've considered
See example with body above.
Additional context
I can give this a go and push a PR if you think this would be the right way to do this.
- 主要言語
- Python
- スター
- 761
- フォーク
- 153
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coderedcorp/coderedcms のほかの issue
-
Type: Bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
coderedcorp/coderedcms#714 ·
-
Type: Bug
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
coderedcorp/coderedcms#711 ·
-
Type: Bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
coderedcorp/coderedcms#713 · コメント 1 件 ·
-
Form submissions return 404 with Wagtail 7.x due to FormMixin isinstance check対応中かも @bradrice が 84 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
coderedcorp/coderedcms#710 · コメント 4 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
coderedcorp/coderedcms#709 ·
coderedcorp/coderedcms の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
EvaluationSuite.run fails with default args_for_task and mutates supplied kwargs対応中かも @ktz03 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
huggingface/evaluate#825 ·
メンテナーはふだん 1 日以内に返信
-
dependencies feature github_actions good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
wemake-services/wemake-django-template#3149 ·
メンテナーはふだん 1 日以内に返信
-
[request] vsg/1.1.16オープンupstream update
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
conan-io/conan-center-index#31142 ·
メンテナーはふだん 1 日以内に返信
-
area:core bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信