YourCommand extends MgnlCommand {
public execute(ctx) {
// here you do what needs to be done
}
}
... look at existing commands for more detailed examples
and look at ExportPage.java to see what needs to be done to export content as
xml if you don't want to create xml structure yourself
HTH,
Jan
On Jun 4, 2010, at 3:43 PM, Suraj wrote:
> I am faced with a situation where I need to have an XML output of a page when
> it has been created/changed/modified. (sort of like RSS)
>
> I thought I will use the Observation module to listen for node changes and
> generate XML but as far as I can tell there is no command in Magnolia to
> generate an XML for an individual page? Therefore I thought I will create a
> custom command where it takes content from a page and outputs XML but I am
> not sure how to set about doing this? Could someone give me some guidance
> please? Thanks.
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
-
Best regards,
Jan Haderka, PhD.
Magnolia International Ltd.
http://www.magnolia-cms.com
You should join us at Magnolia Conference 2010:
http://www.magnolia-cms.com/conference
http://twitter.com/magnolia_cms
http://facebook.com/Magnolia
--------------------------------------
Magnolia® - Simple Open-Source Content Management
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------