WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Route property must be named url #261

@Prokyonn

Description

@Prokyonn

Currently the SuluContentBundle forces the user to have the route property named url in the template.

This behaviour is not consistent throughout Sulu. The ArticleBundle did not force you to have to property named url usually it was called routePath.

Therefore migrating the ArticleBundle to the ContentBundle requires also a migration of the XML templates.

Possible solution

  • Add the required steps to the UPGRADE.md.
  • Add a MetadataListener that shows an error in the UI when an entity detail page is opened with a route property that is not named url.
  • Force a url property in the template structure e.g.:
sulu_core:
    content:
        structure:
            required_properties:
                home:
                    - title
                    - url

Metadata

Metadata

Assignees

No one assigned

    Labels

    To DiscussThe core team has to decide if this will be implemented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions