Opened 8 years ago

Closed 8 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 Tim Graham, 8 years ago

Component: UtilitiesTemplate system
Resolution: wontfix
Status: newclosed
Summary: ul element which returns of method unordered_list from django.template.defualt_filters.py isn't configuredAllow setting CSS classes in the output of the unordered_list template filter

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.

Note: See TracTickets for help on using tickets.
Back to Top