Custom Nav-Links: Find TableGroup-index by table name

You probably know the possibility of adding your own links to the menus. A small disadvantage is that you have to give the target menu as a number (index of the menu). However, the number varies depending on user rights. Wouldn’t it be nice to have the index determined automatically? Here I show a small PHP function for this. Custom Menu Items According to the specs you can add custom nav-links by adding array items to the $navLinks array in hooks/links-navmenu.php. The setting ‘table_group’ => 1 causes the new menu entry to be inserted in the second menu, which is …

Quickie: More space for content in Custom Pages

Custom pages are a great way to add any content to your app. If you have ever created your own custom pages, you may have noticed that quite a lot of space is wasted to the left and to the right of the actual content: Do you see the useless margins? In this case, the content is even too wide for the content-container and a scrollbar appears at the bottom. That doesn’t have to be! With a simple trick you can widen the usable area. Just place that script in your custom page: This gives you smaller margins on the …