Extensible blocks
@jlchilders11 arbeitet bereits daran.
Seit 17.11.2021.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 761
- Forks
- 153
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus coderedcorp/coderedcms
-
Type: Bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
coderedcorp/coderedcms#714 ·
-
Type: Bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
coderedcorp/coderedcms#711 ·
-
Type: Bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
coderedcorp/coderedcms#713 · 1 Kommentar ·
-
Form submissions return 404 with Wagtail 7.x due to FormMixin isinstance checkEvtl. vergeben @bradrice hat das vor 101 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
coderedcorp/coderedcms#710 · 4 Kommentare ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 58/100
coderedcorp/coderedcms#709 ·
Alle Issues in coderedcorp/coderedcms
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
sylvainmetayer/homelab#851 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Add `ty-pre-commit` hookOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
kubeflow/docs-agent#279 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
Qiskit/qiskit-ibm-runtime#3523 ·
Maintainer antworten meist innerhalb von 1 Tag