hi Jason,

Here is some code we used in the past over here to activate content after 
importing it from an XML file:
        // activate all the nodes
        Syndicator syn = new Syndicator(request);
        syn.activate(Syndicator.DEFAULT_CONTEXT, pageName, (pageName + "/" + 
collectionName), true, true) ;

We used Magnolia 2.1.5.
Look at the info.magnolia.cms.exchange.simple.Syndicator API for more details.
Hope this helps.

cheerio,
Vincent Plas


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: dinsdag 19 september 2006 8:29
To: [email protected]
Subject: [magnolia-user] How to activate and proceed pages via program
codes ?


Hi magnolians,
     I have made a template that can automatically new some sub-pages. The 
sub-pages are about some news or e-mails. Because the news or e-mails are 
updating every day, so the sub-pages are generated (updated) every day. But I 
don't want to activate and proceed so many pages manually from admin interface. 

     Because the magnolia3.0 API is still not coming out, I turned to the 
source code, but still not very clear how to do the activate and proceed from 
code. Can I have some of those example codes ?

Thanks,
Jason



----------------------------------------------------------------
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