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

Some of my pages won't preview in the editor #575

Open
weholt opened this issue May 22, 2023 · 1 comment
Open

Some of my pages won't preview in the editor #575

weholt opened this issue May 22, 2023 · 1 comment
Labels
Type: Question Further information is requested

Comments

@weholt
Copy link

weholt commented May 22, 2023

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.

@weholt weholt added the Type: Question Further information is requested label May 22, 2023
@tsmaddox15
Copy link

@weholt wondering if you have figured out anything on this issue. I've had the same issue even with a fresh install of crx and with the default article index page. Seems to be specific to that page for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants