Let's say I have a site with 5 sections, 6 main tabs per section, and
7 sub tabs per main tab. In order to display the correct tabs for a
given view, I have to have:

baseform.html
baselist.html
    foo_section/form.html
    foo_section/list.html
    foo_section/spam_sub_section/form.html
    foo_section/spam_sub_section/list.html

Each section has to have a "form.html" and "list.html" to override the
main tabs, and each sub section has to have a "form.html" and
"list.html" to override the sub tabs for that sub section.

This is of course very painful, but the thing that makes it worse is
that I have to override each block 2 times with the exact same code
(foo_section/list.html and foo_section/form.html have the same tabs
and therefore have 15-20 lines of the exact same HTML in each). This
is true with each level of "form.html" and "list.html". If I could
inherit from two or more templates, and have the later override any
blocks from the former, I could do this:

baseform.html
baselist.html
    foo_section/tabs.html
    foo_section/form.html
    foo_section/list.html
    foo_section/spam_sub_section/tabs.html
    foo_section/spam_sub_section/form.html
    foo_section/spam_sub_section/list.html

For example, Inside of  foo_section/form.html and foo_section/
list.html it would have only:

{% extends "form.html" "foo_section/tabs.html" %}

I might be designing this all wrong, but it seems that working with
tabs is very difficult to do without having hundreds of templates. If
my feature request is lamo, any help or suggestions are much
appreciated instead.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en.

Reply via email to