[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

I cannot get navbar to work



I have an include file called menu.inc looking like this:

<menu:define name=main imgbase="../images/" urlbase="./">
 <menu:header>
  <table cellspacing=1 cellpadding=2 border=0>
  <tr>
 </menu:header>

 <menu:prolog>        <td bgcolor="#cccccc"> </menu:prolog>
 <menu:prolog type=S> <td bgcolor="#cc3333"> </menu:prolog>

 <menu:button id=nyheder	url="nyheder/" 	hint="Nyheder" 	img=nyheder_inaktiv.jpg:nyheder_aktiv.jpg:nyheder_aktiv.jpg>
 <menu:button id=links 		url="links/" 	hint="Links" 	img=links_inaktiv.jpg:links_aktiv.jpg:links_aktiv.jpg>
 <menu:button id=adresser 	url="adresser/" 	hint="Adresser" 	img=adresser_inaktiv.jpg:adresser_aktiv.jpg:adresser_aktiv.jpg>
 <menu:button id=arkiv 		url="arkiv/" 	hint="Arkiv" 	img=arkiv_inaktiv.jpg:arkiv_aktiv.jpg:arkiv_aktiv.jpg>
 <menu:button id=aktiviteter 	url="aktiviteter/" 	hint="Aktiviteter" img=aktiviteter_inaktiv.jpg:aktiviteter_aktiv.jpg:aktiviteter_aktiv.jpg>

 <menu:epilog> </td> </menu:epilog>

 <menu:footer>
  </tr>
  </table>
 </menu:footer>

</menu:define>

<menu:render name=$(name) select=$(select)>

and a file called index.wml, looking like this:

#use wml::std::page
#use wml::des::navbar
<html>
<body>
#include "../menu.inc" name=main select=nyheder

<h1>Nyheder</h1>

<p>
Her kan du finde sidste nyt i vores lokal-forening.
</body>
</html>

I then run: 
wmk index.wml
and get this output, which never will give me a navbar:

<html>
<body>
<menu:define name="main" imgbase="../images/" urlbase="./">
 <menu:header>
  <table cellspacing="1" cellpadding="2" border="0">
  <tr>
 </menu:header>
 <menu:prolog>        <td bgcolor="#cccccc"> </menu:prolog>
 <menu:prolog type="S"> <td bgcolor="#cc3333"> </menu:prolog>
 <menu:button id="nyheder" txt="Nyheder" url="nyheder/" hint="Nyheder" img="nyheder_inaktiv.jpg:nyheder_aktiv.jpg:nyheder_aktiv.jpg">
 <menu:button id="links" url="links/" hint="Links" img="links_inaktiv.jpg:links_aktiv.jpg:links_aktiv.jpg">
 <menu:button id="adresser" url="adresser/" hint="Adresser" img="adresser_inaktiv.jpg:adresser_aktiv.jpg:adresser_aktiv.jpg">
 <menu:button id="arkiv" url="arkiv/" hint="Arkiv" img="arkiv_inaktiv.jpg:arkiv_aktiv.jpg:arkiv_aktiv.jpg">
 <menu:button id="aktiviteter" url="aktiviteter/" hint="Aktiviteter" img="aktiviteter_inaktiv.jpg:aktiviteter_aktiv.jpg:aktiviteter_aktiv.jpg">
 <menu:epilog> </td> </menu:epilog>
 <menu:footer>
  </tr>
  </table>
 </menu:footer>
</menu:define>
<menu:render name="main" select="nyheder">
<h1>Nyheder</h1>
<p>
Her kan du finde sidste nyt i vores lokal-forening.
</body>


I'm sorry about the bunce of code but I have no clue where there error is. Please help.


-- 
yours/mvh
Peter Poulsen
Aalborg, Denmark

E-mail: peter_poulsen@mail1.stofanet.dk
Phone: +45 98 15 47 05
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com