On Aug 20, 2010, at 9:08 AM, Matteo Pelucco wrote:

> 
> Hi Magnolians,
> quick and dirty question.

... deserves quick and dirty answer ;)
> 
> Is it possible to rendere a generic content node from Java?
> I mean..
> 
> 1) I call pageA.html
> 2) Somewhere, a pageA paragraphs needs to produce output rendering a 
> "mirrored" content / paragraph, from pageB, pageC... maybe more than one.
> 
> How easy can be to make it working? Obviously, HttpClient call is 
> out-of-scope...

Obviously, that would be the simplest solution.

> 
> Thanks for any hints!

What your page needs to do is to reproduce what Magnolia filter chain does for 
the rendering. Since you are already in and since you know what you want to 
render, you might skip parts of the setup to simplify it and just setup the 
RenderingEngine and call it's render() method while substituting output writer 
with your own.

> 
> Matteo
> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------

-  
Best regards,

Jan Haderka, PhD.
Magnolia International Ltd.

http://www.magnolia-cms.com

You should join us at Magnolia Conference 2010: 
http://www.magnolia-cms.com/conference

http://twitter.com/magnolia_cms
http://facebook.com/Magnolia

--------------------------------------

Magnolia®  - Simple Open-Source Content Management






----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to