David Larlet wrote: > 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> I've been playing with the sitemap stuff and am finding it to be quite >> slick. I do, however, have some questions about some unusual cases. >> >> 1)It works beautifully for listing all the detail pages that make up a >> list view, but what about the page that takes the list view? In my >> case, For example, I've got all my guitar pages in there, but not the >> "guitars" page itself.
An list of objects returned in a sitemap can be for any page on your site. The object will have an URL associated with it, as well as a frequency of change and priority, etc. So you can make a list of objects that are entirely arbitrary, and as long as the URL returned for each object corresponds to a page on your site (i.e., as long as the URL returns a page on an HttpGet), everything works as you'd expect. >> >> 2) what about pages that aren't directly tied to any particular view. >> My home page, for example, is built mostly from template tags, grabbing >> this and that from here and there. >> >> 3)What if there's some page that's completely outside of django? Create >> a dummy class returning the hardcoded URL? I've got a forum-archive >> subdomain django doesn't know anything about, since it only exists to >> archive the old php-based board. It doesn't matter. You can return whatever URL you want to the requesting server, along with frequency & priority. The server doesn't care. >> > > I have exactly the same question about pages which don't match a > django models and which are not FlatPages. For example /, /blog/, > /products/, etc. I can't find any example about that. > > David > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---