coderedcorp / coderedcorp/coderedcms
Some of my pages won't preview in the editor
- 主要言語
- Python
- スター
- 765
- フォーク
- 154
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
This might not be related directly to coderedcms, but I've subclassed one of the base pages from that project so maybe.
Anyhow, this is my page model:
```
class ArticleIndexPage(CoderedArticleIndexPage):
"""
Shows a list of article sub-pages.
"""
show_cover = models.BooleanField(default=False)
class Meta:
verbose_name = "Article Landing Page"
index_query_pagemodel = "cms.ArticlePage"
template = "coderedcms/pages/article_index_page.html"
body = StreamField(
LOCAL_LAYOUT_STREAMBLOCKS,
null=True,
blank=True,
use_json_field=True,
)
content_panels = CoderedArticleIndexPage.content_panels + [FieldPanel("show_cover")]
```
This page is similar to lots of other pages I've subclassed from coderedcms base pages, but this one won't generate a preview while editing in the Wagtail admin. It says there's a validation error, but there are no red dots indicating anything wrong on the page. I've tried to comment out LOCAL_LAYOUT_STREAMBLOCKS to see if that caused the issues, but it didn't change anything.
Appreciate any tips on how to solve this.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
issue に示されている ArticleIndexPage の定義から始め、Wagtail admin で編集中に発生するバリデーションエラーを再現します。このサブクラスを、プレビューが正常に表示される他のサブクラス化されたページと比較し、その後バリデーションの経路を追跡して、フィールドインジケーターが表示されない理由を特定します。原因が文書化され、このページで使用可能なエディタープレビューが生成されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- django, python
- 領域
- backend, content
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100