I'm working on a project where it would be *extremely* handy to be able to find and list nodes as definition lists, in addition to tables and unordered lists. Ideally one would be able to add arbitrary fields to both the term, and the definition areas, as well as specify separate CSS classes for the dl, dt and dd on a per-view basis.
If I was more familiar with the code base I would create this myself -- as it stands I'm going to try to hack the UL code to get the current version "close enough."
If one of the "real" developers is interested I may be able to secure a budget to help motivate a little attention to this feature request :-)
(background: I'm creating a course list. Each course is a node with fields for name, course number, credits and description. I'd like to use a view to create the list with everything but the description as the term, and the description as the definition. I can then use JQuery to collapse/open the definitions. This works well with all courses hard coded into a list in a single node, but what fun is that?)
Comments
Comment #1
dquakenbush commentedSolved the display portion, but would still love to see definition lists in Views. My way-too-global solution:
- update jquery
- make sure the title has a link
- fiddle with css-wizard to suppress and arrange
- put this in the bottom of drupal.js (is there a better place for this?)
Will link to a demo when the site moves out from behind the firewall.
Comment #2
sunNew view types can be added through 3rd party contrib modules, such as Views Bonus Pack, or by theming individual views.