Add list attributes to help theming
artem_sokolov - July 4, 2009 - 07:27
| Project: | Faceted Search |
| Version: | 6.x-1.0-beta2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
Now the list of categories is built using Drupal's theme_item_list() function in this way:
<div class="item-list">
<ul>
<li class="first">...</li>
<li>...</li>
<li>...</li>
<li class="last">...</li>
</ul>
</div>The classes 'first' and 'last' are automaticaly added by the Drupal's function.
There are sometimes situations, when it is necessary to have a possibility to theme each item individually:
<div class="item-list">
<ul>
<li class="item-1 first">...</li>
<li class="item-2">...</li>
<li class="item-3">...</li>
<li class="item-4 last">...</li>
</ul>
</div>Attached is a patch to review that implements this modification.
| Attachment | Size |
|---|---|
| item-attributes.patch | 1.76 KB |

#1
very good patch !
but, How to use term name for replace "item-x" in class ?
by advance
Thank you
best regards
Alex