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

inders’s picture

Issue tags: +display, +node, +field, +render, +string, +colorbox

=> 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

BrockBoland’s picture

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