Posted by Luigi Donatello Asero on 06/07/05 14:54
"Els" <els.aNOSPAM@tiscali.nl> skrev i meddelandet
news:ne7qin1ppukp.1mq2z6dpiierl$.dlg@40tude.net...
> Luigi Donatello Asero wrote:
>
> > "Michael Winter" <m.winter@blueyonder.co.invalid> skrev i meddelandet
> > news:fB3pe.46433$G8.16233@text.news.blueyonder.co.uk...
> >> On 06/06/2005 22:28, Luigi Donatello Asero wrote:
> >>
> >>> "Oli Filth" <catch@olifilth.co.uk> skrev i meddelandet
> >>> news:3RYoe.1927$ls3.713@newsfe1-win.ntli.net...
> >>
> >> [snip]
> >>
> >>>> Use the same <?php include "menu.html"; ?> line in every page.
> >
> > This sounds interesting but it seems to have some disadvantages:
> >
> > 1) How could I include different menus this way?
> > I would need at least a different menu for each language.
>
> Aren't your files divided into different language folders? Well, have
> a menu.html in each language folder, and make the path relative.
>
> > 2) How do I evidentiate the button which is referred to the link of the
page
> > in question? That should change for every page!
>
> <a <? if ($PHP_SELF=="/index.html") {print
> ('class="current"');}else{print ('href="/"');} ?>>home</a>
>
> I'm sure this can be done in a more elegant fashion, but it works.
> (if anyone can tell me /how/ it can be done more elegant for a list of
> links, please do tell :-) )
Ok. I can test it later.
--
Luigi ( un italiano che vive in Svezia)
https://www.scaiecat-spa-gigi.com/sv/italien-valle-daosta/boende-i-valle-daosta.html
[Back to original message]
|