Thanks Steve, Leandro and everyone else for your help. For the record/archive the solution is: 1) Put Menu.java in $modules/navigations 2) Menu.java belongs to package: your.company.modules.navigations 3) Extend Menu.java which VelocityNavigation.java (which is what I was forgetting to do, doh!! :)
BTW concerning pull tools, this sounds very powerful, but it is new to me, can anyone point me to any docs or examples that I could take a look at. If everyone thinks pull tools are better, then perhaps someone should change the example site (RDF) that comes with the TDK to pull tools, as newbies like me simply download the TDK and learn Turbine by setting up the sample site and don't know any better!! Thanks everyone for your help. Brian. ----- Original Message ----- From: "Steve" <[EMAIL PROTECTED]> To: "Turbine Users List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 15, 2002 3:42 AM Subject: RE: Dynamic Menu? > Although several people have replied that a pull tool is the better > solution--your guess at a solution was also correct. A java file in a > _navigations_ directory is what is needed to do it the old fashioned way, > not one in the screens directory. > > Steve > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 13, 2002 6:53 AM > To: [EMAIL PROTECTED] > Subject: Dynamic Menu? > > > Hi, > > I'm trying to get my menu to be created dynamically by turbine. > My Menu.vm file is stored in the navigations directory, I've tried to create > a Turbine screen called Menu.java which I store in the screens directory and > which adds the dynamic content to the context to be used by Menu.vm. My > problem > is that the Menu.vm doesn't seem to be picking up the data from the > Menu.java > class. > > Can layouts be dynamically created like this? and if yes should I be putting > the Menu.java file in the screens directory or should it be put somewhere > else > like a navigations directory? > > Any help with this would be greatly appreciated. > > Brian. > ---- > http://www.iol.ie > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
