My apologies, I posted this in a different forum, when I should have posted it here. I'm have a simple issue connecting something technically (and mentally).

I'm using panels 2, more precisely I'm using the panel_nodes subfunction. How to I associate that created panel with the node.tpl.php or node-type.tpl.php so that the panel layout will show on any node pages of that type?

Comments

merlinofchaos’s picture

Sorry, that's not what panel_node.module does, which explains why you're not connecting things very well.

The panel node module creates a new node type, the 'panel' node, which has a panel layout. It is otherwise independent from your other nodes, as well as from panel pages. It is sort of a lesser cousin to panel pages, and it exists in case you actually need the functionality of a 'node' for your panels; sometimes this does turn out to be necessary.

Instead, I believe what you want is to use panel pages, and to look at this tutorial:

http://drupal.org/node/206185

That will allow you to have a particular node type or types that have panel layouts.

merlinofchaos’s picture

Status: Active » Closed (works as designed)
raiyne’s picture

Much obliged for the clarification, and for the tut.

raiyne’s picture

Title: Associating a Panel with Nodes AND the frontpage » Associating a Panel with node.tpl.php or node-type.tpl.php
Component: Panel pages » Panel nodes
Status: Postponed (maintainer needs more info) » Closed (works as designed)
raiyne’s picture

Title: Associating a Panel with node.tpl.php or node-type.tpl.php » Associating a Panel with Nodes AND the frontpage
Component: Panel nodes » Panel pages
Status: Closed (works as designed) » Postponed (maintainer needs more info)

Update: Everything working perfectly on all nodes, except the frontpage: Is there an easy way to link my panel to nodes AND the frontpage using the same panel?

merlinofchaos’s picture

Title: Associating a Panel with node.tpl.php or node-type.tpl.php » Associating a Panel with Nodes AND the frontpage
Component: Panel nodes » Panel pages
Status: Closed (works as designed) » Fixed

Unfortunately no, and it's the fault of the Drupal menu system. However, the front page is easily malleable. I would recommend you set up a panel with a URL something like 'frontpage', and in the site configuration set your front page to that URL. That'll take care of the front page problem.

Summit’s picture

Hi,

On http://drupal.org/node/206792 there is a great documentation page about:
Panels 2: Creating a new front page with Views and Panels 2.
Here is explained what Earl is referring to.

Greetings,
Martijn

Anonymous’s picture

Status: Fixed » Closed (fixed)

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