Re: Sitemaps - multiple locations per object

2014-09-23 Thread Pierre de Nomazy
Thanks Le jeudi 18 septembre 2014 01:50:13 UTC+2, PRyan a écrit : > > Hello, > I have business objects which have multiple urls each. The sitemap for the > business objects them self work and I get the following: > /store/ > > However, each business has sites specific to it. So I need sitemaps to

Re: Sitemaps - multiple locations per object

2014-09-19 Thread Collin Anderson
Something like this might work: class MySitemap(sitemaps.Sitemap): def items(self): urls = [] for obj in Store.objects.all(): urls.append((obj, '')) urls.append((obj, 'about')) urls.append((obj, 'contact')) return urls def locati

Sitemaps - multiple locations per object

2014-09-17 Thread PRyan
Hello, I have business objects which have multiple urls each. The sitemap for the business objects them self work and I get the following: /store/ However, each business has sites specific to it. So I need sitemaps to create: /store/ /store//contact /store//about Is there a way I can get Sitema