Skip to content

Commit

Permalink
bug #12618 [Docs] Fix cookbook for custom entity (Tomanhez)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.9 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.7 or 1.8 branch (the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

ba9c52f Fix entity guide
  • Loading branch information
GSadee committed May 31, 2021
2 parents afdbdd3 + ba9c52f commit 606d437
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions docs/cookbook/entities/custom-model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ Having a grid prepared we can configure routing for the entity administration:
resource: |
alias: app.supplier
section: admin
path: admin
templates: "@SyliusAdmin\\Crud"
redirect: update
grid: app_admin_supplier
Expand All @@ -190,28 +189,8 @@ Having a grid prepared we can configure routing for the entity administration:
index:
icon: 'file image outline'
type: sylius.resource
prefix: /admin
.. note::

You can replace ``path: admin`` with ``prefix: /admin``

.. code-block:: yaml
# config/routes.yaml
app_admin_supplier:
resource: |
alias: app.supplier
section: admin
templates: "@SyliusAdmin\\Crud"
redirect: update
grid: app_admin_supplier
vars:
all:
subheader: app.ui.supplier
index:
icon: 'file image outline'
type: sylius.resource
prefix: /admin
10. Add entity administration to the admin menu
-----------------------------------------------
Expand Down

0 comments on commit 606d437

Please sign in to comment.