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

Docs: add clarity to customize editor page #75

Open
AndyCarnevale opened this issue Oct 7, 2024 · 0 comments
Open

Docs: add clarity to customize editor page #75

AndyCarnevale opened this issue Oct 7, 2024 · 0 comments

Comments

@AndyCarnevale
Copy link

Docs on https://docs.coderedcorp.com/wagtail-seo/customizing/customize-editor.html currently look like this:

image

Problem: The panel objects are not shown being imported from the SeoMixin class, so the code doesn't work on first try.

I propose changing to:

class MyPage(SeoMixin, Page):

    # Each is a list of panels.
    promote_panels = (
        SeoMixin.seo_meta_panels +
        SeoMixin.seo_menu_panels +
        SeoMixin.seo_struct_panels
    )

I would make a pull request, but it seems the documentation in this repo is not up to date with what is on the website:
https://github.com/coderedcorp/wagtail-seo/blob/2c0de930e8e6f1aad3494823725ee3eca3dc481e/docs/customizing/customize-editor.rst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant