Skip to content

Adding PhasePage type to control page creation better #30

@vitorgomateus

Description

@vitorgomateus

Having a page type for Phases would force the behavior of the pages.

  • Create new page type for Phases. So that phase and services can have a phase, and no other page can.

  • Enforce child page type? as done in home\models.py:subpage_types

    HomePageNewsIndexPage, StandardPage

    StandardPageStandardPage

    NewsIndexPageNewsPage

  • This would be more valuable if we also created a PhaseIndexPage that can only exist under the home and can only contain PhasePage, which can only contain StandardPages. With the purpose of making the Phase field only applied to PhasePage and ServicePage. I guess for now they could use the StandardPage template because it is working, it would just restrict the creation of new pages.

    Home can also have PhaseIndexPage and ServicesIndexPage but editors can’t create them, only devs, I guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✏️ modelChanges the behaviour of the system

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions