Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Right now, the plugins return a string to be displayed for the subpage content. This makes sense for embedding a view, but not so much for Fields: the plugin gets the fields values and renders them (poorly) to return a string.
The FIeld plugin should just return the fields. _node_subpages_tab_content()
should check if the returned value is a string before calling trim()
on it.
Comments
Comment #1
inders CreditAttribution: inders commented=> No String now.. We are using render() function for rendering field.
I have added patch in this comment: http://drupal.org/node/1544068#comment-7290894
Now module plugin will render the fields as per display settings so all structure will remain as it is. (For field option).
E.g. If colorbox display node is selected for image field then image could be shown with colorbox display option in new tab.
Thanks & Regards
-Inder Singh
http://indersingh.com
Comment #2
BrockBoland CreditAttribution: BrockBoland commentedhttp://drupalcode.org/project/node_subpages.git/commit/f29fcb9