I'm looking to retrieve all URLs of a Magento website (CMS pages, categories, products…) subdivided by store view.
Something like the default Magento Sitemap, but with a different format: specifically I'm trying to get a "one URL per row" plain text file, one for each store view.
Magento 1.9 – How to Get All Magento URLs by Store View
magento-1.9sitemapsurl
Best Answer
Take a look at how Magento generates it's
sitemap.xml
file.Specifically the
Mage_Sitemap_Model_Sitemap
class methodgenerateXml
. For example, following snippet generates them for the categories, I've rewritten it a little to export to a flat text file.Add the code from the class to your own script to generate a text file