Hi @pböttcher,
very good idea and a great tip, thank you very much!
One small thing is happening now: On
login-page we now get an empty "Jump-to"-dropdown

- chrome_ngIZYrnsZk.png (9.45 KiB) Viewed 8627 times
I think next to checking if we are on
index.php we should also check if
signIn parameter is defined or not.
I hope you don't mind if I add a very little piece to your code:
Code: Select all
<?php $is_homepage = (basename($_SERVER['PHP_SELF']) === 'index.php' && !isset($_REQUEST['signIn'])); if ($is_homepage) { ?>
<script>
$j(function() {
var x = '<?php echo str_replace("\r\n", '', str_replace("\t", '', NavMenus())); ?>';
$j('.nav.navbar-nav:first').append(x.replace(/\t/g, ''));
})
</script>
<?php } ?>
Now the menu's should
not be visible on login page...

- chrome_oaXmrByXIv.png (10.16 KiB) Viewed 8627 times
... but should be visible on dashboard ...

- chrome_EFZDx0ctBm.png (46.02 KiB) Viewed 8627 times
Best,
Jan
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 25.10 + all AppGini Helper tools