#4529: Allow multiple blocks with the same name in one template
---------------------------------------------------------+------------------
          Reporter:  Noam Raphael <[EMAIL PROTECTED]>  |         Owner:  nobody
            Status:  reopened                            |     Milestone:       
 
         Component:  Template system                     |       Version:  SVN  
 
        Resolution:                                      |      Keywords:       
 
             Stage:  Design decision needed              |     Has_patch:  1    
 
        Needs_docs:  0                                   |   Needs_tests:  0    
 
Needs_better_patch:  0                                   |  
---------------------------------------------------------+------------------
Changes (by pixelcort):

 * cc: [EMAIL PROTECTED] (added)

Comment:

 Replying to [comment:4 Batiste Bieler]:
 > A workaround if you need to block that have the same content in your
 base.html is to nest your block in your child template like this:
 >
 > {% block title %}{% block page_title %}{% trans "My page title" %}{%
 endblock %}{% endblock %}

 This workaround works, but is inconvenient. I have the same situation
 where I want to set my title and h1 to the same thing in my base.html.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4529#comment:7>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to