Universal CSS Navigation Menu Support Product Page
This topic is locked
Answered
saving menu for insertion across site
Asked 18 Oct 2011 00:19:09
1
has this question
18 Oct 2011 00:19:09 Kathy Stroud posted:
Hi. I need to create anew menu and insert it site-wide. How do I d this easily?Thanks.[:I]
Kathy
Replies
Replied 18 Oct 2011 10:08:05
18 Oct 2011 10:08:05 Teodor Kuduschiev replied:
Hello Kathy,
There are two ways of using the Universal Navigation menu to insert it in your site:
- Use it in a template and update all of the pages from the main template file.
- Use it as an included file e.g. in php:
In order to use it as a included file on your pages you need to do the following:
1. Open a blank new page
2. Insert the menu and style it
3. Switch to code view and cut all of the menu code that is between <body></body> tags and paste it in an absolutely blank file e.g.: your_menu_file.php /When i say absolutely blank file i mean - create a new file and delete everything in it in code view/
4. Cut the menu css files and js files in the <head></head> tags and paste it in the <head></head> tags on the pages that will use the menu as an include
After that when you open the your_menu_file.php file and edit/save the changes will affect all of your pages that use it as an include.
There are two ways of using the Universal Navigation menu to insert it in your site:
- Use it in a template and update all of the pages from the main template file.
- Use it as an included file e.g. in php:
<?php require_once ("path_to_your_menu_file.php"); ?>
In order to use it as a included file on your pages you need to do the following:
1. Open a blank new page
2. Insert the menu and style it
3. Switch to code view and cut all of the menu code that is between <body></body> tags and paste it in an absolutely blank file e.g.: your_menu_file.php /When i say absolutely blank file i mean - create a new file and delete everything in it in code view/
4. Cut the menu css files and js files in the <head></head> tags and paste it in the <head></head> tags on the pages that will use the menu as an include
After that when you open the your_menu_file.php file and edit/save the changes will affect all of your pages that use it as an include.
Replied 18 Oct 2011 15:22:34
18 Oct 2011 15:22:34 Kathy Stroud replied:
Thanks so much. I was hoping to avoid the template route as the pages are already done and the menu is changing rather often.
I'll try the php route although I don't feel especially competent in that area!
I'll try the php route although I don't feel especially competent in that area!
Replied 18 Oct 2011 16:21:00
18 Oct 2011 16:21:00 Teodor Kuduschiev replied:
Replied 07 Dec 2011 00:02:23
07 Dec 2011 00:02:23 Baub Eis replied:
How about a .asp version...
Replied 07 Dec 2011 09:42:46
07 Dec 2011 09:42:46 Teodor Kuduschiev replied:
The same as in the video tutorial but use:
<!--#include file="yourincludefile.asp" -->
<!--#include file="yourincludefile.asp" -->
Replied 07 Dec 2011 23:02:35
07 Dec 2011 23:02:35 Kathy Stroud replied:
As a designer and a half-baked coder, I really wanted to use the DW library. I didn't completely work. Do you have any tips on that? I already have the library version on all pages but they won't update consistently. I would try the other ways, and will if I must, but I'm working with 200 pages.