Firstly, I think this is fantastic module, I can give up using contemplate for grouping my fields into divs.
At present the module has inline and above options for displaying fields in a node region. Options for tables, ul, ol would be helpful.
I realize this can be handled by theme files, but a checkbox to display fields in a table, list or div couldn't hurt that much.
Comments
Comment #1
swentel commentedMakes sense. Inline, above en hidden are used for the label however. Am I on the right track if we introduce a new column where you can choose how fields in a specific region are rendered - in either a table, list or div? Or am I missing something here, let us know!
Comment #2
keyo commentedSounds good. All I really need is a quick way to make all fields in a region render as a single table, with labels on the left (as
Comment #3
swentel commentedMoving this to the ND contributions project. We now have plugins support for ND and we'll write a plugin for this in the future after we have a first API freeze.
Comment #4
swentel commentedMoving this to Display suite module. Should belong to core - if we can achieve that in the first place. Might become a 'by design' issue though, more on that after new year.
Comment #5
swentel commentedPostponing this, this won't get in for the 6--1 branch of DS - 6--2 will make this.
Comment #6
BenK commentedSubscribing...
Comment #7
donquixote commentedInteresting!
Some use cases:
- Display a bunch of fields as a table. Label on the left, value on the right. Multi-value fields get additional table rows, title not repeated, but maybe with rowspan.
- Wrap a group of fields in a wrapper div
- definition list of labels + values.
- multi-value field with values as list items
- inline a group of fields, with separators
Some inspiration:
- The tree tabledrag for admin/content/node-type/[type]/fields, with groups
- Semantic views module. Check it out, it's in the same spirit as display suite.
Ideas:
- Fields get settings for tagName and class, similar to semantic views. Or you can choose from a list, how the field should be wrapped.
- Use a tree tabledrag for admin/ds/layout/[node-type]/[build-mode]. Introduce new element types that can wrap a group of child elements, similar to field groups for CCK.
- For every group you can choose if the elements should be rendered as a list or as span tags or div or table rows etc.
- New field render modes can be defined through plugins.
- Targetted theming (with optional suffixes) similar to views.
Btw, another funky thing would be DS for node edit forms!
Comment #8
adrianmak commentedsubscribe
Comment #9
ryo commentedsubscribing
Comment #10
gooddesignusa commentedsubscribing
Comment #11
swentel commentedWith views fields support, we are not going the 'panels' way :)
Comment #12
swentel commented- Add first & last classess
- ds_ui_menu should use ds_field_load (also buildmodes and stuff)
(reopening because D7 port is starting soon and want to try and include as much of the requests in this thread)
Comment #13
swentel commentedClosing for now - first port will be a straight port. We'll see what happens once we get a new branch.