Hello David: I am sorry I was not able to get to you earlier, however at this point I don't have a definite answer for your problem, but may be I can give you a pointer, and when I get sometime tonight I will try to dig further to find a solution.
As far as I know, the variable $jetspeed in velocity templates in not a macro, it's an object. Most likely initialized and injected by spring. If so, then the configuration should be under "assembley" directory. I don't think that's what you need, but you can look and see how it's intialized with the themes and why it's not in the desktop. Again, I am not sure about this, but that's where I would start when I get time tonight. You can give it a try, and let me know. good luck. On Mon Apr 13,2009 10:46 am, David Just wrote: > Thanks for the point, it got me a little farther on the investigation > path. > #PageTitle() is defined in Jetspeed-macros.vm which is parsed for > desktop. However digging into it, the #PageTitle macro is defined as: > > "#macro (PageTitle)$jetspeed.page.getTitle($preferedLocale)#end" > > I went through this macro variable by variable and $preferedLocale is > defined as "EN" which is correct, but $jetspeed is undefined. This means > that any macros that used $jetspeed won't work. > > Anybody know what $jetspeed is supposed to be defined to? Why it's not > defined when running in desktop mode? > > > > David Just l Software Engineer l Vision Solutions l +1 (507) 529-5939 l > [email protected] > The contents of this e-mail (and any attachments) are privileged and > confidential. Unauthorized use is strictly prohibited. > -----Original Message----- > From: Mansour Al Akeel [mailto:[email protected]] > Sent: Saturday, April 11, 2009 1:35 AM > To: Jetspeed Users List > Subject: Re: #PageTitle() in Desktop.vm > > David: > > I am not a velocity guru, but AFAIK when this happens it indicates that > the macro is not defined. Taking a look at the desktop.vm shows that > "decorator-macros.vm is not included. > > Try to add this line at the begining: > > > #parse($layoutDecoration.getResource("decorator-macros.vm")) > > I didn't test it this one yet. Let me know if it works for you. > > > > On Fri Apr 10,2009 12:57 pm, David Just wrote: > > There is a #PageTitle() macro in the header.vm that when rendered, > > spits out the name of the page currently displayed. This macro > doesn't > > seem to work when used in the desktop.vm for rendering the destktop. > > Instead it prints out $jetspeed.page.getTitle($preferedLocale) . > > Anybody have a fix? > > > > > > > > > > > > Thanks. > > > > > > > > David Just l Software Engineer l Vision Solutions l +1 (507) 529-5939 > l [email protected] > > The contents of this e-mail (and any attachments) are privileged and > confidential. Unauthorized use is strictly prohibited. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
