Active
Project:
Toggle Node
Version:
6.x-2.0
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2010 at 16:09 UTC
Updated:
4 Jan 2011 at 20:34 UTC
I was able to get this to work as a display suite code field by using
<?php echo theme('togglenode_links', togglenode_get_links('node', $object)); ?>
Figured I would mention this in case you want to add this code snippet to the project docs
Comments
Comment #1
gooddesignusa commentedWhen I updated to the latest version of Display Suite(6.x-1.4) this stopped working. After some investigating it seemed to not work on nodes that I had a CCK node reference field. I was using a block view to print node reference fields. I turned that block into a display suite field. The code field was also on the node that was being referenced. It seems that it was running that function more than once and It was actually causing toggle node to link to the node reference edit page. I was able to get this working by checking the nid against the arg: