Opened 9 years ago
Closed 9 years ago
#27129 closed New feature (wontfix)
Allow setting CSS classes in the output of the unordered_list template filter
| Reported by: | Michail Lelyakin | Owned by: | |
|---|---|---|---|
| Component: | Template system | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I use this method, but without customization class of ul elements it's not useful for me. I suggest add ability to set class of 'ul' elements in result.
Example result:
<li>States
<ul class="my_class">
<li>Kansas
<ul class="my_class">
<li>Lawrence</li>
<li>Topeka</li>
</ul>
</li>
<li>Illinois</li>
</ul>
</li>
Change History (1)
comment:1 by , 9 years ago
| Component: | Utilities → Template system |
|---|---|
| Resolution: | → wontfix |
| Status: | new → closed |
| Summary: | ul element which returns of method unordered_list from django.template.defualt_filters.py isn't configured → Allow setting CSS classes in the output of the unordered_list template filter |
Note:
See TracTickets
for help on using tickets.
I think it'll be too difficult to come up with something sufficiently generic to meet all use cases, so I suggest you write a custom template tag suitable to your needs.