I would like for my users to be able to re-order fields within a display region on an individual node basis instead of having to use the order pre-determined in the selected view mode. I have not found a way to allow this, so I am adding it as a feature request. If there is a way to do this already, then I'd love to know how!

Thanks for the great module!

Comments

swentel’s picture

There is a module in the DS Extras module. Once enabled go to 'admin/structure/ds/extras' and you can enable the 'Node switch view modes' features. On the node edit form, the user will be able to select the view mode on a per node basis for the full node. So if you have a couple of configured view modes, that's the fastest way right now to switch view modes on a per node basis.

Getting the Field UI per node is possible, but that takes a lot more work to get in, and that will take a few months I think, unless someone writes it for me :)

SeeWatson’s picture

Thanks for the quick response! I did enable that extra feature and it is a good start...but I'm already needing to allow my users to choose between 1, 2, and 3 column layouts...so any field reordering would have to be done separately in each of these. Given that I need about 4-5 combinations of field orders, that means making 12-15 different view modes per content type. If I have to do this for 3-5 different content types...it gets crazy. I've been told panels might work for this (turn the fields into separate content types)...but your UI is so much better IMO...so I really would like to stick with it.

swentel’s picture

Well, the UI is from core, I'm just hooking into it heh.

Well, to be honest, I don't even have the slightest idea when I could starting writing this, let alone some sort of ETA of a first patch, so this really might take a while. Maybe someone can chime in and help along.

SeeWatson’s picture

I mean, I'm a PHP developer...just new to Drupal. I've been a Joomla guy for a while. If I had some kind of map of how this would work, I could make a stab at trying to do it myself.

swentel’s picture

Well, it will require some changes into the database (an extra field on the node table) and 2 API changes in ds_entity_variables(), ds_field_attach_view_alter. Block regions won't work with this functionality though, although that's not a big problem I guess. I'll start working on it since I've done this before and should be relatively easy after some investigation. Expect some code within a week or so to review.

swentel’s picture

Status: Active » Closed (won't fix)

Ok, I started coding this, but gave up after a while because the entity, field API and storage system in Drupal 7 are simply not made to support this kind of functionality (without hacking, but I'm not going todo that). This is really a won't fix for this module.

SeeWatson’s picture

Well, that's regrettable. I'll look into panels. It looks like our IT people here were right...drupal just really isn't up to enterprise level if it can't support things like this. Back to the proprietary CMS drawing board.

anruether’s picture

Version: 7.x-1.0 » 8.x-2.x-dev
Issue summary: View changes
Status: Closed (won't fix) » Active

I ran into the same situation with Drupal 8 and DS 2.4. I'm wondering if #6 is still the case for d8. In the meantime, there was also a sandbox module for d7, but it looks like it was dropped a while ago.

swentel’s picture

Status: Active » Closed (works as designed)

Sorry, this is not within the reach of this module, panelizer is a much better option for this.