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.
Adding more buttons to our extended MainBar doesn't really touch the
Magnolia MainBar any more, so I don't think I'll be putting all the
extra functionality in a dialog window under a single button, but I you
could send me an archive with what you've done, I'd like to take a look
at it for inspiration.
Thanks, Nils.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------