Sunil,

FYI, Macros are located in jetspeed/WEB-INF/jetspeed_macros.vm or in the
decorator specific decorator_macros.vm.

Velocity is not all that complex. Here is the link to the site:

http://jakarta.apache.org/velocity/index.html

Caution: I am fairly sure that adding a custom portlet mode/action will
be more difficult than adding something in the decorators/macros.

Randy

On Wed, 2005-12-21 at 15:47 -0800, Tiwari, Sunil Kumar wrote:
> Hi Randy,
> 
> I was able to create a new skin by copying the folder structure of an
> existing skin and tinkering with it. So far, I am able to just change
> the look and feel but wasn't able to add new custom mode.
> 
> I noticed a macro #PortletActionBar($decoration) in
> jetspeed/decorations/portlet/decorator.vm
> 
> I guess this macro has to do with what modes can be provided.
> But I don't know much about Velocity and so I cldn't figure it out.
> 
> Could you tell me where these macros are defined and how they work with
> themes and skins?
> 
> Thanks so much for your inputs.
> 
> -Sunil
> 
> -----Original Message-----
> From: Randy Watler [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 21, 2005 3:15 PM
> To: Jetspeed Users List
> Subject: Re: How to create a new skin and add custom mode to it
> injetspeed2?
> 
> Sunil,
> 
> The best way to start with the decorators is to make a copy of them and
> tinker!
> 
> Decorators can be deployed by jaring them up and dropping them into the
> webapps/jetspeed/WEB-INF/deploy directory, (the jar file must contain
> the *.properties and *.vm files at the top level and folders for css and
> images filled appropriately). There might be a small bug in the 2.0
> release deployer, but we'll fix that soon. In the interim, you should be
> able to edit them in place or copy new ones into the existing
> webapps/jetspeed/decorators directory.
> 
> If you need to add a new custom mode, that is more complicated. I am not
> sure J2 supports this without code changes. I am sure David Taylor can
> give you some input there, or you can try to search the mailing list
> archives.
> 
> HTH,
> 
> Randy
> 
> On Wed, 2005-12-21 at 11:32 -0800, Tiwari, Sunil Kumar wrote:
> > Hi,
> > 
> > I have recently started using jetspeed2 portal and it looks amazing.
> > The themes and skins have been developed using Velocity and I don't
> know
> > much about it.
> > 
> > Can someone help me in creating a new skin and adding custom mode to
> it?
> > I want a config mode in addition to the default modes. I need to add
> the
> > image to the skin.. am I right?
> > 
> > 
> > Thanks,
> > Sunil
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to