» Forums
» DynarchMenu forum
» Support
» menubar external definition
menubar external definition
2006/09/19 12:58
Viewed 2864 times
Replies: 1/5

hello,

the answer to my question is perhaps in a previous post on this forum, but I haven't found it.

I want to define an unique menubar for many pages. To achieve that, i plan to define it in an external file (html, js ?) loaded in every page of my site. Could someone give me a solution to do that ?
Thanks a lot
Best regards

Re: menubar external definition
2006/09/19 13:02
Viewed 4447 times
Replies: 1/4

Just include the HTML that defines the menu with any mechanism provided by the server-side scripting language that you use, i.e. PHP or Perl, etc. Should be quite easy.

If you don't use server-side scripting (i.e. all pages are static) then it's more complicated.. You should try using Apache SSI (server-side includes), if you're using Apache; otherwise I can't help you.

last
Re[2]: menubar external definition
2006/09/19 13:10
Viewed 5803 times
Replies: 1/3

hello,

thanks for your quick answer.
You're right, my html pages author don't like SSI, since it prevent them to see what their pages will be on their local computer.

So, I'm looking for a way that uses either javascript's include, or an IFRAME that includes the HTML code required. Will one of these solutions work with dynarchMenu ?

I think that the ability to factorize a menu bar in a single file for many pages that share the same look will be a great feature. Any change of the menubar remains very simple, and is automatically reported to every page.

Best regards

last
Google