Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

09 - Add a list representation for locations in the admin interface #14

Open
wants to merge 1 commit into
base: assignment/08
Choose a base branch
from

Conversation

luca-rath
Copy link
Contributor

@luca-rath luca-rath commented Jul 7, 2020

Display location list in the admin interface

Goal

After adding the Location entity in the last assignment, we want to add a new navigation item to the Sulu
administration interface that allows to access a list of all managed locations.

Steps

  • Create a new admin API-Controller App\Controller\Admin\LocationController with a getListAction to that returns
    our locations
  • Register the controller in your config/routes_admin.yaml
  • Configure a new resource locations in your config/packages/sulu_admin.yaml
  • Add a new list configuration for locations in a config/lists/locations.xml file
  • Create a new Admin class src/Admin/LocationAdmin.php
  • Configure a new admin navigation item in your src/Admin/LocationAdmin.php
  • Use the ListRouteBuilder to add a new admin route in your src/Admin/LocationAdmin.php
  • Log into the admin UI with user "admin" and password "admin"
  • Goto the list of locations and see an empty list :)

Hints

  • Have a look at the existing event navigation item in the src/Admin/EventAdmin.php file

More Information

Have a look at assignment 07 for more information.

Links

@alexander-schranz alexander-schranz added the assignment Pull request for a assignment solution label Sep 23, 2020
@niklasnatter niklasnatter force-pushed the assignment/09 branch 4 times, most recently from 909a038 to d95eb0f Compare October 23, 2020 09:10
@niklasnatter niklasnatter force-pushed the assignment/09 branch 3 times, most recently from 4e356fb to f42bddd Compare October 23, 2020 11:30
@niklasnatter niklasnatter force-pushed the assignment/09 branch 3 times, most recently from 7d69d6e to e7afc40 Compare February 16, 2021 14:16
@niklasnatter niklasnatter force-pushed the assignment/09 branch 2 times, most recently from 162ccb1 to 6706d26 Compare May 27, 2021 13:01
@niklasnatter niklasnatter force-pushed the assignment/09 branch 3 times, most recently from e8c72fc to d76d4e6 Compare June 22, 2021 08:56
@niklasnatter niklasnatter force-pushed the assignment/09 branch 5 times, most recently from e4827b9 to 4afec2d Compare June 20, 2022 20:53
@niklasnatter niklasnatter force-pushed the assignment/09 branch 2 times, most recently from 458ce4f to b2615d7 Compare June 20, 2022 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assignment Pull request for a assignment solution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants