Account created on 4 August 2022, almost 2 years ago
#

Merge Requests

Recent comments

It seems that simply changing the extension doesn't preserve the good formatting for md files. I think they need to be updated to the correct formatting for code, tables, links, etc. This will further improve the visual perception and usability

It might be good to change INSTALL.txt to INSTALL.md, which would improve the readability of the file from the repository page.

As mentioned in #6, deleting styles is not the best solution. So I dove into this topic a bit and tried to solve it.

I tried to solve it with styles, but I was able to reproduce quite a few cases that the styles did not cover.

I added a js file that covers most of the cases (using different layout densities, row position in the table, and number of elements in the options).

May need to add some comments for clarity, and also test if the js for views works when filtering

I had previously tested this on 10.2 with the patch to issue #3413508, but I tested it on the 10.3-dev branch.

I wanted to create a menu with a collection of frequently used settings for the administrator. I created a custom router with the following configuration:

test.admin:
  path: '/admin/test'
  defaults:
    _title: 'Test'
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  requirements:
    _permission: 'access administration pages'

and added the link to the file links.menu.yml

test.admin:
  title: 'TEST'
  route_name: test.admin
  parent: nts_core.admin

test.admin.item_1:
  title: 'Item 1'
  route_name: system.admin_config_system
  # route_name: system.site_information_settings
  parent: test.admin

test.admin.item_2:
  title: 'Item 2'
  route_name: system.admin_reports
  # route_name: system.site_information_settings
  parent: test.admin

If the page contains only links to other pages that are being processed SystemController::systemAdminMenuBlockPage, 403 is displayed.

If there is 1 element that returns another page (for example, I used the system.site_information_settings route for testing), then the page is displayed well, including other links to the page.
---
If a page implemented using SystemController::systemAdminMenuBlockPage contains only links to pages that are also implemented by this controller, it is displayed as 403

Production build 0.67.2 2024