Our Environment : SDL Tridion 2013 SP1
We are trying to automate sitemap during every page publishing/unpublishing. The requirement is to create two sitemap files (audiositemap.xml/videositemap.xml). While creating content pages, author would choose whether the page type is audio or video in page metadata.
During publishing/unpublishing, if the page type is audio, url needs to be added in audiositemap.xml file. If it is video type page, it should be added in videositemap.xml.
Can anyone suggest if it can be done through event handler, deployer extension or db customization? Or any other better way.