#33662: Choose which items are displayed per language in Sitemap
----------------------------------+----------------------------------------
     Reporter:  roxanebellot      |                    Owner:  roxanebellot
         Type:  New feature       |                   Status:  assigned
    Component:  contrib.sitemaps  |                  Version:  4.0
     Severity:  Normal            |               Resolution:
     Keywords:  sitemap           |             Triage Stage:  Accepted
    Has patch:  1                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+----------------------------------------
Changes (by roxanebellot):

 * owner:  nobody => roxanebellot
 * status:  new => assigned
 * has_patch:  0 => 1


Comment:

 Sorry for the delay, I did not at all see any of your comments sooner !

 I have in my project a model Article which could be summed up in four
 fields (url_en, url_fr, content_en and content_fr). Some of these article
 are only written in one language. With no content, the page is empty. Even
 if it exists, I don't want this empty page to be in my sitemap.

 My idea was to add a method in Sitemap to return a boolean indicating
 whether the item should be displayed in the sitemap given a language.
 I made a first draft for a patch
 
([https://github.com/django/django/compare/main...roxanebellot:django:ticket_33662]).
 I wait for a green light on the feature before submitting it as a PR.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33662#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070184000747b6-048576ca-d076-490a-a95a-8a2a054c6b1d-000000%40eu-central-1.amazonses.com.

Reply via email to