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

Comments

swentel’s picture

Project: Display Suite » NodeSymlinks
Category: bug » feature

That's feature request for nodesymlinks.

Wolfgang Reszel’s picture

Status: Active » Needs review
StatusFileSize
new773 bytes

Here's a patch for a custom view mode selected through the 'View mode per node' feature of display suite.

Wolfgang Reszel’s picture

StatusFileSize
new773 bytes

The first patch did not work in all cases, here's a better one.

wojtha’s picture

Status: Needs review » Needs work

@Wolfgang: What is the difference? The patches seems to be identical for me... could you post the "better" version again please? Thanks.

Wolfgang Reszel’s picture

They'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().

wojtha’s picture

Status: Needs work » Fixed

Ok, thanks for clarification I've overlooked that.

Committed in http://drupalcode.org/project/nodesymlinks.git/commit/d326c6f

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.