Improvements and operation.

Created on 18 January 2025, 19 days ago

Hello.

First I want to thank you for the module, it is very useful.

It works perfectly, but I have made some changes. It needs some improvement to make it a complete for more utility.

I understand that it was created under your way of seeing things.

The improvements I made are:

add new:
custom_add_content_renderer: 1 -- original
custom_add_content_renderer_page: 1
custom_add_content_parent_link: '/node/add'
custom_add_content_parent_link_label: 'Add'

I added three configurations with their corresponding variables and checks.

1. custom_add_content_renderer_page -- It is to control if you want to have the original Drupal page to add content. I added an control to the router if default drupal or from module page has been chosen.

2. custom_add_content_parent_link -- Is link for add parent link to menu. I added the possibility of having a parent link because if the menu does not have a parent link, and has many items, it does not have a dropdown display, the entire menu collapses and is not very operational and useful.

3. custom_add_content_parent_link_label -- It is the parent link label, it is translatable.

I left the option without parent menu link, and added the check using the getPluginId() function, for the correct check of the menu.

If you are interested, I will share the changes with the code.

Thanks

Feature request
Status

Active

Version

2.1

Component

Code

Created by

🇪🇸Spain ady1503

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024