Page Types (Developers)


What it is

Page type is a nullable string field on DegDitor pages used to classify pages for programmatic lookup and filtering.

When to use it

Use page types when storefront or integration logic needs stable category-like identifiers for pages (for example legal pages).

How it works

  • Data model adds fifty_deg_degditor_page.type.
  • Field is exposed in admin via PageTypeChoiceType.
  • Type options come from configuration provider (page_types parameter).
  • Shop API supports exact filtering by type.

How to configure/use

Configure available page types

1fifty_deg_sylius_degditor_base: 2 page_types: 3 privacy_policy: 4 name: 'Privacy Policy' 5 description: 'The privacy policy page of this website' 6 cookie_policy: 7 name: 'Cookie Policy' 8 description: 'The cookie policy page of this website' 9
If omitted, defaults are used:
  • privacy_policy
  • cookie_policy
  • terms_of_use

Query by type

Repository methods:
  • PageRepository::findByType(string $type)
  • PageRepository::findPublishedByType(string $type)
API filter example:
GET /api/v2/shop/degditor/pages/?type=privacy_policy

Common issues

Page type dropdown shows no options

  • Confirm page_types config is loaded in active environment.
  • Confirm PageTypeConfigurationProvider can resolve container param.

API returns no pages for known type

  • Validate exact type key value (not label).
  • Validate publication and channel constraints.

Multiple pages share one type

  • Decide explicitly if your integration expects one or many pages.
  • Enforce uniqueness at process/application level if needed.

Related docs

Your next step

Bring DegDitor to your Sylius store

Try the plugin

Experience the best features at no cost

Get a better understanding of DegDitor and how it works

Test it risk-free and see the results

Try it

Get a demo

Get a personalized demo tailored to your unique needs

Discover how reusable blocks speed up content creation

Evaluate DegDitor against your requirements

Get a demo

Find the right fit for your store

Tell us about your Sylius store and content needs. Talk to sales to explore the right DegDitor license, discuss integration, and plan your next steps.

Talk to sales