Knowledge Base support case for AllWebMenus, abstracted and stripped of all user’s private info.
Initial Email From: Theologos
Initial Email Subject: Likno Mega Menu
Support Case Month: March 2012
Hello,
When using your software and Full HTML mode for creating e.g. a Mega Menu, can you enter apart html, php code to dynamically create the html content?
And if yes, does it need full code with connection strings etc. or does it get that from within the page that it is inserted into?
I want to create a big Mega Menu, but the content to be dynamically created.
Thank you in advance,
Theologos
Reply From: Likno Customer Support
Hello,
I am afraid that this only supports HTML, so it is not possible to use PHP. If you want to create dynamic menus there are two ways to do this:
1) Using the Server-side menu API to manually build your menu
2) Using a UL/LI structure to generate the menu structure
The first will allow you to do whatever you want, without restraints, but it requires custom coding in JavaScript (you will have to “write” the JavaScript commands into the page using your PHP code).
The second is very easy to use – just use PHP to “write” a UL/LI list in the page that resembles the menu structure and add (or not) the “protected” menu items as you want. This however forbids the use of custom items, which means that your menu will only use the six main styles (three for group, three for item) defined in the Style Editor.
If you do not use custom items anyway, then I highly recommend going with the UL/LI structure. If on the other hand you do need customizations and are comfortable with JavaScript coding then you can go with the first solution.
Best Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter
Reply From: Theologos
Hello,
What I want to do is populate that html full field of likno, with html generated via php in order to create on the fly a Mega Menu where the html content is dynamically produced.
Example: Within the opened Mega Menu, I want links to be shown that are generated by a database.
Is there a way that this can be done via custom development and how much will this cost?
Theologos
Reply From: Likno Customer Support
Hello again,
Are you suggesting that we do this in your site for you? I guess this is also an option (I can ask for a quote), but if you are comfortable with PHP it should be really easy for you to do the same thing.
Assuming that you do not need any style customizations and hence you can use the UL/LI structure, here are the steps you need to take:
1) Create an include file that will have the AllWebMenus code. You could omit this step and put the code in every single page, but it will probably be much easier to maintain the menu if you have everything in a single file. Make sure this file is included in your pages.
2) The include file should have the Linking Code, and it should also have a UL/LI structure. Here is an example of the Linking Code and UL/LI structure that would generate a mega-menu:
For more details and example of UL/LI code, for the menu you have already created in AllWebMenus, check here:

Note however that you will have to mass-replace all the “<” to “<”, all the “>” to “>” and all the “&” to “&” (with this order) in order for this to work as expected.
Also if you click on the question mark right next to the UL/LI radio, you will find detailed information on how the UL/LI feature works.
Best Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter