Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions docs/development/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ You can use them like so:
There is also a helper called `enableChildRoutes`, which takes a prefix string as an argument. Calling this method on a
menu item, will activate it when a route is visited that starts with the prefix you pass.

In short, if you have a menu item with `user_overview` as the route, and you enable child routes with the `user_`
In short, if you have a menu item with `user_admin_overview` as the route, and you enable child routes with the `user_admin_`
prefix, all the following routes will also mark the user menu item as active:

* `user_create`
* `user_update`
* `user_export`
* `user_whatever`
* `user_admin_add`
* `user_admin_edit`
* `user_admin_whatever`

## The example listener

Expand Down
2 changes: 1 addition & 1 deletion templates/base_error.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% include '@SumoCodersFrameworkCore/head.html.twig' with {title: block('title') is defined ? block('title') : page_title} %}

{% block stylesheets %}
{{ encore_entry_link_tags('error') }}
<link rel="stylesheet" href="{{ asset('styles/error.scss') }}">
{% endblock %}

{% endblock %}
Expand Down
3 changes: 0 additions & 3 deletions templates/empty.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@
<div class="container">
{% block main %}{% endblock %}
</div>
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
</body>
</html>
4 changes: 0 additions & 4 deletions templates/user.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,5 @@
</div>
</div>
</div>

{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
</body>
</html>
2 changes: 1 addition & 1 deletion templates/usermenu.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</li>
<div class="dropdown-divider"></div>
{% if is_granted('IS_IMPERSONATOR') %}
<li><a href="{{ impersonation_exit_path(path('user_overview')) }}" class="dropdown-item" data-turbo-prefetch="false">{{ 'user.actions.switchback'|trans|ucfirst }}</a></li>
<li><a href="{{ impersonation_exit_path(path('user_admin_overview')) }}" class="dropdown-item" data-turbo-prefetch="false">{{ 'user.actions.switchback'|trans|ucfirst }}</a></li>
{% else %}
<li><a href="{{ path('_logout_main') }}" class="dropdown-item" data-turbo-prefetch="false">{{ 'user.actions.logout'|trans|ucfirst }}</a></li>
{% endif %}
Expand Down