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

swentel’s picture

Makes 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!

keyo’s picture

Sounds 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

) and content in the right column.
swentel’s picture

Project: Node displays » Node displays contributions
Component: Code » Other modules support

Moving 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.

swentel’s picture

Project: Node displays contributions » Display Suite
Component: Other modules support » Code

Moving 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.

swentel’s picture

Status: Active » Postponed

Postponing this, this won't get in for the 6--1 branch of DS - 6--2 will make this.

BenK’s picture

Subscribing...

donquixote’s picture

Interesting!

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!

adrianmak’s picture

subscribe

ryo’s picture

subscribing

gooddesignusa’s picture

subscribing

swentel’s picture

Status: Postponed » Closed (won't fix)

With views fields support, we are not going the 'panels' way :)

swentel’s picture

Title: Alternative methods for displaying fields » Possible new features for D7 port
Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (won't fix) » Active

- 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)

swentel’s picture

Status: Active » Closed (fixed)

Closing for now - first port will be a straight port. We'll see what happens once we get a new branch.