Page 1 of 1

Export Option for PHP-Include

PostPosted: Thu Feb 13, 2020 9:15 am
by meRalle
I'm primary working with PHP and Javascript to for Dynamic and Interaction.

Thatfor I'm preparing each Export-Results to get a file named e.g. "menu-top.html" reducing html/body-Code to get:
Code: Select all
<div id="mbmcpebul_wrapper">
   ### menu-code here ###
</div>


In e.g. "index.html" the include
Code: Select all
<?php include 'menu_top.html';?>


will include the complete menu, without Menu Maker touching the original "index.php".

Partly i go one step further adding an Logo in Front of the Menu:
Code: Select all
<div id="mbmcpebul_wrapper">
    <img src="images/mylogo" height="38" style="border: 0; margin: 0px 15px ; float: left; vertical-align: middle" alt="">
    <?php include 'menu_top.html';?>
</div>


and the "menu-top.html" file to include is reduced to
Code: Select all
<ul id="mbmcpebul_table" class="mbmcpebul_menulist css_menu">
   ###- menu-code here ###
</ul>


I would like the Option, to define which part of the menu is saved to the exported file, so it can be included without manual modifications or additional javascript-code to import only the menu, not html/body.

The Option to include the code in existing files is thatfor not satisfying.

Hope this will find a way into a the next version, as it is easy to be established.

meRalle