this was very helpful .. finally i ended up using your solution ... thx

BTW i use "ContentUtil" instead of "HierarchyManager"

greetings
rainer





Magnolia - User mailing list wrote:
> 
> Hi rainer
> 
> I implemented exactly the same thing. What I did was implementing a helper
> class which I called to perform the activation. This helper class performs
> the recursion using the MgnlHierarchymanager, and then just calls
> syndicator.activate(parentPath, path); on each page  (syndicator is an
> instance of info.magnolia.cms.exchange.Syndicator.java)
> 
> Your approach is different as you use the Activationcommand directly but I
> used the Syndicator directly, so I cannot answer your questions directly
> 
> HTH
> 
> Claudio
> PS: I don't remember why I chose to implement it this way, perhaps I was
> forced to do so by the older Version of magnolia. However it works
> perfectly in version 3.5.2 von magnolia
> 
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 15. April 2008 11:51
> An: [email protected]
> Betreff: [magnolia-user] manually activate page incl. subpages
> 
> 
> 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/
> ----------------------------------------------------------------
> 
> ----------------------------------------------------------------
> for list details see
> http://documentation.magnolia.info/
> ----------------------------------------------------------------
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AW%3A--magnolia-user--manually-activate-page-incl.-subpages-tp16701204p16721685.html
Sent from the Magnolia - User mailing list archive at Nabble.com.


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

Reply via email to