When using the NodeSymlinks Module to 'duplicate' a node to another menu it seems that the View mode I have selected for the node does not work on the NodeSymlink version of the node but works fine on the original.
I was wondering if this is a bug that can be repaired?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | nodesymlinks-ds-viewmode-1513438-3.patch | 773 bytes | Wolfgang Reszel |
| #2 | nodesymlinks-ds-viewmode-1513438-2.patch | 773 bytes | Wolfgang Reszel |
Comments
Comment #1
swentel commentedThat's feature request for nodesymlinks.
Comment #2
Wolfgang Reszel commentedHere's a patch for a custom view mode selected through the 'View mode per node' feature of display suite.
Comment #3
Wolfgang Reszel commentedThe first patch did not work in all cases, here's a better one.
Comment #4
wojtha commented@Wolfgang: What is the difference? The patches seems to be identical for me... could you post the "better" version again please? Thanks.
Comment #5
Wolfgang Reszel commentedThey're not identical. When using isset() it does not work when $node->ds_switch is set but empty, so the Patch in #3 uses empty() instead of isset().
Comment #6
wojtha commentedOk, thanks for clarification I've overlooked that.
Committed in http://drupalcode.org/project/nodesymlinks.git/commit/d326c6f