int startLevel = 0; // (0 means root / no pages selected, 1 means the top most parent page of the activePage
Content rootPage = activePage.getAncestor(startLevel);

As for the JspWriter maybe this will help you pageContext.getOut();
not sure about this one

Stojan

(Robert Van Overmeiren) wrote:

I went through the mailing list & javadocs.

I guess you get the start page content object with...


   HierarchyManager hm =
SessionAccessControl.getHierarchyManager(request,"website");
Content page = hm.getContent("/home");


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 11:02 AM
To: [email protected]
Subject: Re: [magnolia-user] [magnolia-dev] How can I instantiate 'page'
and 'activePage' objects

page is the top level page from which you want to start drawing the
menu

OK, then how can I instantiate an object instance of the page I want to
start with?



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to