Hi,

i just included an activate Button on a page, so that the Backend-User can
activate a page while he is watching it.

This already works, but i dont get it to activate the childpages too. I
thought, i'd only set "recursive" true and everything would be fine, but it
doesnt seem to work.

Can u please tell me whether i set "recursive" true on the wrong object? Or
if the followChain=false is guilty ;)

thx a lot


here is some code snippet:

public class FooQuickActivator extends ActivationCommand {
 
    public boolean execute(Context context) {
       
        ...//some logic whether this is a manually activation

        boolean followChain = true;
       
        if (manuallyActivate) {
            // this should also activate child pages????
            
            super.setRecursive(true);
            
            super.execute(context);
           
            followChain = false;
        }
        return followChain;
    }
}
-- 
View this message in context: 
http://www.nabble.com/manually-activate-page-incl.-subpages-tp16698581p16698581.html
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to