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.
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
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedSorry, 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.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedComment #3
raiyne CreditAttribution: raiyne commentedMuch obliged for the clarification, and for the tut.
Comment #4
raiyne CreditAttribution: raiyne commentedComment #5
raiyne CreditAttribution: raiyne commentedUpdate: 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?
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedUnfortunately 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.
Comment #7
Summit CreditAttribution: Summit commentedHi,
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
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.