List Info

Thread: How to use Lenya with Struts and Velocity?




How to use Lenya with Struts and Velocity?
country flaguser name
Pakistan
2007-03-06 05:16:47
Hey everyone!

I intend to use Lenya as a CMS for my website which is
developed using 
Struts, Velocity, Hibernate etc. I have a few questions as
follows:

1) Is it possible to configure lenya in such a way that we
can generate 
velocity files when we create new pages using its editors
like Kupu and BXE? 
What I mean to say is that my ultimate goal is to have
velocity files 
generated by lenya so that I can have them placed in my
website repository 
since we are using velocity as a view in our MVC framework.
If this can 
really happen then our integration effort will be very
less.

2) Is it possible to customize lenya for email generation? I
mean if we are 
supposed to send out emails on different events such as
submitting a page 
for publication to the reviewer?

3) In the templates that we create for pages, is it possible
to have include 
files? For example we can include different files in JSP and
Velocity. The 
same way, can we have include files in our templates too?

4) Can we use Lenya to edit some configuration files such as

struts-config.xml in case of struts?

Thanks,

AB

____________________________________________________________
_____
Don’t miss your chance to WIN 10 hours of private jet travel
from Microsoft® 
Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/di
rect/01/


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


Re: How to use Lenya with Struts and Velocity?
user name
2007-03-09 14:51:26
On 3/6/07, Abubakar Pasha <abubakarpashahotmail.com> wrote:
> Hey everyone!
>
> I intend to use Lenya as a CMS for my website which is
developed using
> Struts, Velocity, Hibernate etc. I have a few questions
as follows:
>
> 1) Is it possible to configure lenya in such a way that
we can generate
> velocity files when we create new pages using its
editors like Kupu and BXE?
> What I mean to say is that my ultimate goal is to have
velocity files
> generated by lenya so that I can have them placed in my
website repository
> since we are using velocity as a view in our MVC
framework. If this can
> really happen then our integration effort will be very
less.
>
> 2) Is it possible to customize lenya for email
generation? I mean if we are
> supposed to send out emails on different events such as
submitting a page
> for publication to the reviewer?

Yes, it is.  My organization has only done this for 1.2.4,
following
the instructions at
http://lenya.zones.apache.org/docu/1_2_x/how-to/faq.html
), but
http://lenya.zones.apache.org/docu/1_4/referen
ce/notification.html
implies it is available for 1.4 as well.

For 1.2.4 we customized the following files in order to make
the
messages and behavior what we were looking for:

notification.xconf
message2xslt.xsl
targets.xml
forms.css
usecase.xmap
publish-screen.xsl
submit-screen.xsl

Hope this helps...

>
> 3) In the templates that we create for pages, is it
possible to have include
> files? For example we can include different files in
JSP and Velocity. The
> same way, can we have include files in our templates
too?
>
> 4) Can we use Lenya to edit some configuration files
such as
> struts-config.xml in case of struts?
>
> Thanks,
>
> AB
>
>
____________________________________________________________
_____
> Don't miss your chance to WIN 10 hours of private jet
travel from Microsoft(r)
> Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/di
rect/01/
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
> For additional commands, e-mail: dev-helplenya.apache.org
>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )