Skip to content

Different resource type for a relation #318

@aimeos

Description

@aimeos

We have a nested set tree (kalnoy/nestedset) for pages, which contains relations for navigation like ancestors (breadcrumb), children (sub-navigation) and subtree (global menu). By default, all items have the type "pages" but for the navigation, we would like to be able to apply a different sparse field set. We've tried using ->type('navs') for the relations but that doesn't work because the schema for that items is determined by the model (there's a schemaForModel() method used). What's the best way to assign a different type to those relations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions