Nils Breunese wrote:
Matteo Pelucco wrote:
We have created one single button which open a modal window (JS based)
and in this modal window we do a lot of things:
- create new article
- delete the article
- activate / deactivate the article
- republish all referenced content (from an external content we use)
...
All the actions are Ajax based.
In this way we touch the Magnolia bar as less as possible and we are
more free to add custom functionalities, in a more fancy way for editors
(progress bar, activation status, link to just created articles,
warnings, ...)
If you need this little feature, feel free to ask, I will send you a zip
file with some codes inside.
I have created a subclass of Magnolia's MainBar class and I have added a
button there. The activation status is checked via the AggregationState
and then a button is shown to either activate or deactivate the page.
For now clicking this button just pops up a dummy dialog window.
Ok, I'm continuing with this project. So, I'll have call the
setOnClick() method on my button to set an action and this is a
JavaScript call. I have dug into AdminCentral for a bit to see if I
could find anything that I could call to get the content in edit mode
activated/deactivated, but (I'm no JavaScript guru) that all seemed a
bit tied in with the AdminCentral tree interface.
A colleague suggested writing a servlet, plugging that into the dynamic
filter chain and have that handle the activation/deactivation requests.
While I believe that would work: is that the way to go or is there an
easier way?
Nils.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------