One Panel per Content Type

Events happening in the community are now at Drupal community events on www.drupal.org.
ajdiva03's picture

Hey Everyone,

I'm a relative newbie to the use of panels so I was wondering if there is any sort of step by step documentation as to how to create one panel per content type.

I feel like I've looked everywhere and tried everything, and obviously there is something that I am missing (maybe a module or permissions or something).

Thanks in advance.

Comments

.

michelle's picture

Use the node view page and make one variant per node type. You can use the selection controls to say which variant goes with which node type. You can also make a default variant and put it last as a fall back for any types that don't have variants.

Michelle

or no default

fending's picture

If that "default variant" is actually just a plain vanilla node template where you're just replicating what happens without panels, you can -- in this case -- supply no default variant, and the logic will fall back to the non-panels node display. I found this to be particularly useful for sites with many content types where only, say, 80% required a panels-override approach.

Hmm can you explain it more detailed

Dr_Ernst's picture

Hmm can you explain it a little bit more plainly.. When you are talking about variants you loose me completely as there are many types of nodes when you have installed a couple of modules. Can you make a 1. do this 2. do this 3. do this explanation instead? For me that would be helpfull. Actually to know what to google on this subject is hard.. Perhaps you mean content types? (perhaps I should go to the CCK menu and create more kinds of content types? (actually my content will have the same content so I think this is overdoing it.. I'm more into a surtain tag that will make the entry go in to a certain panel - actually I would like to have just a few options for the guest-posters on the site to be able to post entries in 4 different post-cathegories..)

I googled this (and u where one of the first results so):
creating list with a taxonomy cathegory in a column in the module panels +drupal

But ofc I will look on the next google results too..

PS. - actually I would like to have just a few options for the guest-posters on the site to be able to post entries in 4 different post-cathegories..

Panels terminology

fending's picture

@Dr_Ernst: "Variant" is a term present in the Panels UI and refers to a particular configuration of the Panels page displayed based on a set of simple "Selection rules" (another term in the Panels UI). One such Selection rule might be:

Node being viewed is type "Artist"

...though there are ways to handle other conditions, like the type of user. It's hard to tell from your description what content types you're thinking about using and whether it's appropriate to do so -- it's worth a little experimentation, I think, to see what will ultimately provide the best experience.

Googling the phrase "how to use panels variants" gave this excellent first result: http://drupal.org/node/661656

restore to default Variant

ntigh52's picture

Hi,
I deleted the default Variant on node template panel.
There is a way to restore that?
Thanks.

Panelizer

enrique.delgado's picture

Late to the party, but found this thread in Google when I was trying to do the same. I found drupal.org/project/panelizer which allows you to add Panels functionality to other entities / content types.

Panels

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: