Page 1 of 1
nav-menu also visible on home
Posted: 2018-12-04 08:23
by rlandto
Hi
Maybe a newbie question, but I simply do not get it to work.
I would like to show the nav-menu also on the home page.
How do I manage this?
THX for any hint.
Re: nav-menu also visible on home
Posted: 2018-12-04 09:57
by jsetzer
Hi @rlandto,
1. Open the file
inc.Common.php in your code editor. You will find the file in the root directory of your app.
2. Find the following lines:
Code: Select all
<?php if(!$home_page){ ?>
<?php echo NavMenus(); ?>
<?php } ?>
3. Remove or comment-out the first and the third line and keep the second line
4. Save the file and reload your browser to verify the result.
Caution
AppGini will overwrite inc.Common.php on next code generation
as long as you do not uncheck inc.Common.php before generating.
Regards,
Jan
Some of my AppGini improvements:
https://www.bizzworxx.de/en/appgini-improvements/
Re: nav-menu also visible on home
Posted: 2018-12-04 10:16
by rlandto
Hi jsetzer
Perfect. Working like a charm.
Thank you
Re: nav-menu also visible on home
Posted: 2018-12-04 10:18
by jsetzer
You are welcome!
Jan
Re: nav-menu also visible on home
Posted: 2018-12-08 14:11
by dnaorem
jsetzer wrote: ↑2018-12-04 09:57
Hi @rlandto,
1. Open the file
inc.Common.php in your code editor. You will find the file in the root directory of your app.
2. Find the following lines:
Code: Select all
<?php if(!$home_page){ ?>
<?php echo NavMenus(); ?>
<?php } ?>
3. Remove or comment-out the first and the third line and keep the second line
4. Save the file and reload your browser to verify the result.
Caution
AppGini will overwrite inc.Common.php on next code generation
as long as you do not uncheck inc.Common.php before generating.
Regards,
Jan
Some of my AppGini improvements:
https://www.bizzworxx.de/en/appgini-improvements/
This works perfect, thanks to Jan sir for this...