Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
Boring in the train and frustrated to be able to only use 'one' or 'all fields' for displaying the description, I made a small but efficient patch who allows you to use "view modes" for displaying data in the description field.
Proposed resolution
Just as the option <entire row>
, I added a new option for the description select form: <entire node>
I've also added a new select form, allowing us to choose which rendering mode we want.
Check the screenshot.
Remaining tasks
It's done.
User interface changes
Just a new select form in the style's settings.
API changes
No API changes.
Original report by Pol
Comment | File | Size | Author |
---|---|---|---|
#3 | 0001-1365768-Use-view-nodes-and-Display-Suite-for-renderi.patch | 3.49 KB | Pol |
#2 | snapshot11.png | 67.16 KB | Pol |
#1 | 1365768-Use-view-nodes-and-Display-Suite-for-rendering-the-s.patch | 3.33 KB | Pol |
Comments
Comment #1
PolPatch for 7.x-2.x attached.
Comment #2
PolScreenshot
Comment #2.0
PolSyntax
Comment #3
PolUpdated.
Comment #4
zzolo CreditAttribution: zzolo commentedThanks for the patch, Pol.
You were missing some logic around where to put the rendered object. So, I added a bit to it. Commit is here:
http://drupalcode.org/project/openlayers.git/commit/ffd35ee
Please test this out when you have a chance.
Comment #5
PolHello @zollo,
Your patch breaks Openlayers, I'm looking for a solution.edit: sorry forget what I just say, it was because of something in Display Suite.
Comment #6
PolIt's working good ;)
Comment #7
zzolo CreditAttribution: zzolo commentedAwesome. Thanks again, Pol. Closing...
Comment #8
PolI got a weird behavior with this and maybe we should think to another way of working and probably a new patch.
If your location is a node_reference, the rendered node will be the referenced node instead of the node.
Comment #9
PolOk this is fixed by adding the Content:'nid' of the original node.
Comment #9.0
PolUpdates.