When creating a new panel, it's possible to select the gallery title, body, plus any extra fields added to the gallery node.

Is there a way that the gallery itself is able to be added to a panel, without all the other fields?

Comments

dddave’s picture

Category: feature » support

Have you tried to use the the Node option in panels? You can insert a complete node into a panel and using the NID of the gallery should work, shouldn't it?

BrisCoder’s picture

Yes, that works.. But if you add a whole lot of extra fields into the node and want to display those separately, you can't. Have to do it via a tpl file I think.

BrisCoder’s picture

The only way I've found to display the gallery on its own is through the node-node_gallery_gallery.tpl.php file using the following line

<?php print $node->content['gallery']['#value']; ?>

It would be reeeeally cool to be able to call that from within a panel

troyl’s picture

You can easily embed the gallery into a panel.

From the node option choose -- > Node Content

and make sure you have unchecked all the options on the settings for the node content especially

--> No extras

This will render the whole page as it's but with options which CTools and panels provide.

dddave’s picture

Status: Active » Fixed

Sounds fixed per #4.

Status: Fixed » Closed (fixed)

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