Panels

Panels 2 is a module that uses drag & drop to add content to layouts. It is designed as an API so that modules can use these displays to customize their own areas, and we're working toward fully integrating this solution into Drupal 7.

Is there a way to get the context argument to a custom content pane?

public
group: Panels
manuel garcia@d... - Tue, 2008-07-01 18:59

Hi all,

I am in a bit of a dead end here, first a brief description of our case:
2 taxonomies: artist and album
4 content types: artist, album, song, and video pulling from those taxonomies.
node overriden for all through panels2
context puling arguments for taxonomy IDs on those nodes, from both vocabularies, that drive all views panes.

This all works great (got to love panels2), but there is one piece I cant seem to get working:

I aim to have a pane on artist node overrides, that will have a flashplayer, with all videos tagged with the same artist term id, as a playlist.

Making views pager work in panels

public
group: Panels
cangeceiro - Wed, 2008-06-25 20:28

So what im try to accomplish is this....

I have a panel page that needs a calendar picker for picking dates and a taxonomy drop down form. I built a view that takes url arguments for the date. in the format of calendar/%y/%m/%d. then when a user clicks the calendar picker it returns to the panel but appending the dates as args (ie calendar/2008/6/25/ ).

using the following code I am able to make my view accept these arguments

Argument Code

$args[0] = arg(1);
$args[1] = arg(2);
$args[2] = arg(3);

$view->is_cacheable = 0;
return $args;

Footer code:

Panels for Custom Search

public
group: Panels
pshafer - Wed, 2008-06-25 19:04

Is there any way that I can use panels for a custom content type search. For instance I have a content type called Events, and I only want to search nodes of this type, however I want to state withing the domain of the Events url ('events/whatever')? Is this possible or should I be looking for a different solution?

Thanks!

How to know whether panels is used (inside template.php)

public
group: Panels
Rubini - Thu, 2008-06-19 09:58

Hi,

I want to hide the h1.title when panels is used to create an overview of sections. But in normal views there should be the h1.title.
Is there a way to get inside template.php the information if in this page panels is used?

Thank you for helping me.
Michael

How to pass taxonomy term from node context and to embedded view?

alaken's picture
public
group: Panels
alaken - Tue, 2008-06-17 23:43

First, thanks to Earl and Sam for Panels 2 - an amazing contribution to Drupal! I'm having a ball with it, but have hit a roadblock that has me stymied for the moment:

I want to make a panel page that takes a node id (or a path alias) as argument, and displays the content of that node in one pane, while extracting the top taxonomy term from the node, and passing the taxonomy term as an argument to some views panes in the same panel page.

Here's a diagram of what I mean:


Is the core forum module still needed anymore?

public
specmav - Tue, 2008-06-17 09:13

I know that I will most likely be wrong about this, but with the advancement of CCK, Views, OG and Panels, is the forum module really necessary anymore? My idea being is that with all these "practically core" modules, isn't it feasible to create a forum with just these modules?

I can create a content type called "forum post" manually, set the taxonomy for the forums (granted containers would be an issue) and use views to custom tailor the data shown to the users. I can already create 8/10th's of the forum functionality with just that scenario. Unless I am missing something.

Questions about Panel Nodes

public
group: Panels
Ben Niehoff - Thu, 2008-05-22 08:01

I'm having some difficulty using Panel Nodes. Specifically, how do I add content to them? I've done the following:

  1. Edit the Panel Node
  2. Click the tab for "Panel content"
  3. Click the little plus sign on one of my panels to add a pane.

The road to D6 Panels2

public
group: Panels
sdboyer - Mon, 2008-05-19 05:05

Yep, we all want it: Panels2 in D6. Unfortunately, as the long and ongoing discussion in the http://drupal.org/node/223994 "Port of Panels 2.x branch to d6" thread indicates, it's quite a task. So, in the tradition of Views and Project, I'm setting up this wiki page as a means of publicizing what needs to be done in hope that it'll attract some help from folks who are willing and able.

First - stages of the plan!

how to give diferent width to panels

oskar_calvo's picture
public
group: Panels
oskar_calvo - Wed, 2008-05-07 00:12

Hello.

I hope some one can tell if what I have in mid can be done, or not.

I am trying to get different width in panels. I am working with Two column bricks, and the idea is this:

|______________|
|__________||___| (1)
|______________|
|____||_________| (2)
|______________|

I am checking the css, but I change the width of the number 1, it also change the numbre 2. My css code is this:

.panel-2col-bricks .panel-col-first{width:65%}
.panel-2col-bricks .panel-col-last{width:35%}

Panels 2 with related terms

public
group: Panels
ethanre - Fri, 2008-04-18 21:43

Hi guys I need your expert advice I'm new to panels and have used Drupal for a couple months. I did a lot of reading and testing. I've over-written the taxonomy views with panels 2.

My panel pulls in a view and instead of the default view it shows a table of Nodes that belong to that term.. this works fine.

I am missing features that nodes have but panels don't seem to have, mainly related terms.

My 2 problems:

I have taxonomy vocab A with terms a1, a2, etc, and taxonomy vocab B with terms b1, b2, etc.
If I use a node, I can have the node belong to both a1 and b1.

Disable panels for specific themes

kha's picture
public
group: Panels
kha - Tue, 2008-04-15 15:37

Hi, still no answer to my previous question, but I have another one :

If I use node/% to override node presentations, I can't have access anymore to node/%/edit with the standard garland theme.
I would like to have a front theme with panels page aenabled for my visitors, but keep the garland with standard node presentation screens for the admin users.

Thus I would like to disable panels override for the garland theme. Is this possible or am I doing something wrong ?

Thanks for your answer


block template for pane

kha's picture
public
group: Panels
kha - Sun, 2008-04-13 20:53

I haven't found a solution in this group so far, so let's open a discussion.
On a site wurrently under development, we still haven't decided whether we will user panels or not. Our design's CSS are quite complex, abnd before switchcing, we want to be 100% sure that we wll be able to fully control the rendering.


GDO Group Page weights not working

ebrittwebb's picture
public
ebrittwebb - Thu, 2008-04-10 13:47

This has probably already been addressed, but since I haven't seen anything about it, I thought I'd mention it here.

I've implemented the new panel pages feature on two groups now: Churches and Drupal in Education. In both cases, I've noticed that the page tabs show up in the order I created them, not in the order I weighted them.

Anyone else notice this? How do I fix it?


CCK Integration for Panels

gordon's picture
public
gordon - Thu, 2008-04-10 01:23

I have just posted a patch which allows people to add a single field into a pane for much greater control over content layout.

See http://drupal.org/node/97375 for the patch to CCK


Passing Arguments to views inside panel

public
group: Panels
avior@drupal.org - Thu, 2008-03-13 21:57

Hi There
I have been using panles 2 beta 2, with views 1.6

I want to be able to pass the panel page argument to the views inside the panel ,
I have read all the documentation here, but can't make this happen, any help will be appreciated.

I have a content type call event (with a date field called date_start)
I have set up a view called events that accept the date_start as an argument, (it's the second argument , the first is termid, and the third is RSS: RSS Feed Selector)
the view has argument code that set up the default value

using panels 2 everywhere

sime's picture
public
group: Panels
sime - Mon, 2008-03-10 03:27

We're happily using Panels 2 in our latest site. We're using panels for all node types and suppressing everything else around the panel (ie. we're not using the block config page much at all).

We'd now like to create a default panel to use on every page that is not currently a panel - this will make theming totally consistent - no designing css for both html output scenarios.


Artist & Albums On The Same Page

public
group: Panels
yeeloon - Tue, 2008-02-26 11:00

Hi all,

I'm very new on this applying Panels to the Drupal CMS.

So, right here, I'm trying to accomplish something like http://musicbox.sonybmg.com/artists/alicia-keys or http://popsugar.com/celebrity/Jessica_Alba. I'm sure Panels can do something similar, but I just don't know how exactly to achieve it.

To achieve a simpler version, I have created two different content types: Artist and Album.

I've also created a new category called Artist which points to the Artist and Album types. I've checked it as:
Hierarchy: Single
Related Terms
Free Tagging.

Then, I goto:

What are the main features of Panels that cannot be accomplished with Views and Blocks?

amatlis's picture
public
group: Panels
amatlis - Mon, 2008-02-18 21:36

Hi, I apologize in advance if this question is posted in the incorrect place. I am new to Drupal and facing a steep learning curve. I'm trying to focus my learning so that I can more quickly start implementing a social networking site for dancers (salsa, swing, ballroom, etc). I have read a lot of great things about Panels, and I am not sure whether to focus my limited free time on learning everything about Panels or just stick to learning Views.


What are the future plans for integration of Panels and MySite modules?

gustav's picture
public
groups: MySite · Panels
gustav - Sun, 2008-02-10 09:06

Both the Panels and the MySite module provide a mechanism and an interface for creating pages with content blocks pulled from various sources. The main difference between the two is that Panels is aimed at the site administrator and MySite is aimed at the individual user. Compared to the complex functionality that both these modules provide, this distinction seems tiny.


Questions with contexts (node add form)

bobk's picture
public
group: Panels
bobk - Thu, 2008-01-31 09:10

For the life of me, I can't get the settings right for the node add form context setting for panels.
The tutorial for using the node edit form context is great, so thought it would be similar to set up the node add
context.

The closest I get is to having the pane return:

Form
Form goes here.

Looking through the panels/content_types/form.inc include, I found the following function (plus my var_dump)

function panels_content_form($conf, $panel_args, &$context) {
$block->module = 'form';
var_dump($context);
if (isset($context->form)) {


Having view pagers in a panel?

public
group: Panels
kirilius - Sun, 2008-01-27 02:57

Hi there,

I am stuck on a seemingly no-brainer problem here. Yet I can't find a solution already half a day. In short I cannot get a view to show it's pager inside a Panel.

I have a view, which has the "Use pager" checked and "Items to display" set to 12. I have used the same settings under the Views Panels configuration (http://mysite/admin/panels/views). My "view type" is set to Page.
When the view is displayed alone, it shows its pager and I can browse through the pages if there are more than 12 nodes in the view.

How to set the panel's title dynamically?

public
group: Panels
kirilius - Fri, 2008-01-25 16:33

I need to display a panel in the context of a node and I need that panel to dynamically get its title from the node's context.

How can I do this?

How to display a Panel Page as a tab for a specific node type?

public
group: Panels
kirilius - Sun, 2008-01-20 01:44

I posted this as a support request but this group may be a better place for it.

I have just installed a fresh Drupal 5.6 and Panels 2 beta 2.

I have a custom node type called Destination. My goal is to add some content related to each Destination node as a separate tab in the main Destination node display.

Normally after viewing a node, I would see the two default tabs:
View | Edit
I just want to add another one, say called "Test Panel", so that when I am looking at a Destination node, I'll have 3 tabs:
View | Edit | Test Panel

Panels 2 Screencast

birdmanx35@drupal.org's picture
public
group: Panels
birdmanx35@drup... - Tue, 2008-01-15 12:17

Hello, all. I've just created the node for a screencast that I was to do for a GHOP task. The link can be found at: http://drupal.org/node/210208.

Thanks very much!


Ability to Drag and Drop Blocks

public
group: Panels
metals83 - Thu, 2007-12-27 18:35

Hi,
I am trying to implement a feature for users to rearrange the existing blocks on the home page (netvibes way http://www.netvibes.com/ ).
Users with any role anonymous/authentic can rearrange the blocks to customize the home page but only authentic user's customization will be saved.

Overriding the node edit form

amitaibu's picture
public
group: Panels
amitaibu - Fri, 2007-12-14 07:24

Panels 2 allows you to override the Edit form of a node. The advantage is clear for developers and non-developers as well, as placing difference blocks in different places is all made through an easy to use UI.

Let's override the Edit form of all the story nodes and divide it into two columns. On the left will place the content form, and on the right the node comments.

  1. In the panel settings 'Add' a 'Two Column' panel.
  2. Panel name = Override node edit
  3. path = node/%/edit
  4. Click 'next'

Panels 2 API Documentation

merlinofchaos's picture
public
group: Panels
merlinofchaos - Thu, 2007-12-13 20:09

This WIKI is currently a placeholder for Panels 2 API documentation.

proviso: schuyler1d is just putting some documentation here while I peruse the code. It could be all wrong.


Suggestions for Panels UI

yoroy's picture
public
groups: Panels · Usability
yoroy - Fri, 2007-11-30 02:36

Attaching some thoughts on how to improve the organisation and layout of the panels administration pages. I started pasting this together before I coud see that the img tag is allowed in wiki pages. Let me know if you'd like a certain screenshot to be instantly visible here. I have an .ODT of this document as well but that's bigger than the 1MB limit for attachments here.


Panels 2 documentation

Caleb G's picture
public
group: Panels
Caleb G - Wed, 2007-11-28 23:03

Help brainstorm and or volunteer to help out with Panels 2 documentation.

Below is in an initial outline that is based on looking at Views documentation as an example, talking to merlinofchaos, and pondering what might be helpful. Constructive comments, additions, offers to help do specific sections are welcome and encouraged.

I. Panels 2 documentation
+Top level: brief overview of Panels 2

  Sub sections
  - Panels basic options
  - Definitions
  - Panels displays
  - Panel pages
  - Panel nodes
  - Mini panels
  - Panels arguments
  - Panels context

II. Panels 2 Theming

III. Panels 2 tutorials
Overriding the node edit form


Node decorator functionality

amitaibu's picture
public
group: Panels
amitaibu - Mon, 2007-11-19 16:31

I think the CCk Blocks module can provide a possible work around in order to get the Node decorator functionality.


Best way to display a node detail page with panels for my own content type?

olav's picture
public
group: Panels
olav - Thu, 2007-10-25 11:50

In case I want my detail page ($page=1) at /node/123 of my own content type to display in a panel - how would I do this?


Question: Start embedded view at offset n

olav's picture
public
group: Panels
olav - Mon, 2007-09-24 21:39

Is there an easy way to start an embedded view in panels2 at a certain offset, other than writing my own module and setting $view->offset from the panel arguments in my implementation of hook_views_pre_query?

For a news site, I want the first article to look different and the layout prevents me from just formatting the first list item differently. Instead, I want to have two panes where the first one shows only the first item, the other pane shows items starting from the second one.

Cheers,
Olav


Content / Context API

agentrickard@drupal.org's picture
public
agentrickard@dr... - Mon, 2007-08-27 18:11

I just proposed this session for Barcelona. Hope it makes sense.

Looking deeply at the MySite / Panels integration question, I think what we need is a unified abstraction API that lets modules find, collect, render, and display data in multiple contexts.

Working on a unified API might be the best direction. Take a look at the session proposal and this brief overview.


Integration of panels with taxonomy_menu - sort of

olav's picture
public
group: Panels
olav - Sun, 2007-08-26 19:13

For a current project, I am using panel pages, integrated with menus created from a taxonomy hierarchy. For this, I have done a mashup module of taxonomy_menu, taxonomy_assoc - which in my case associates a panel page with a taxononomy term - and panel pages. The code for the resulting module is attached to the slides of my presentation at FrOSCon in Sankt Augustin today.


Ajax panels

public
group: Panels
frank75 - Thu, 2007-08-23 21:07

Add the possibility to refresh a content panel with a timer with ajax.
Ho is possible extending the content panels with autorefresh via ajax for you?

Caching panels

public
group: Panels
frank75 - Thu, 2007-08-23 19:29

Hi,
in my site i have used block cache with panels for caching tabs panel.
First i have created mini panels with tabs (last items,more view,more voted) for any contents (news,events...) .
After i have added this mini panels in panel page in home using the block cache version for caching it.

My ideas is of add cache capacibility for any type of contents in panels (view,block,nodes and custom contents) with the same options in block cache:

-cache per user
-cache per page
-cache time limit
-cache where a node is creatred,updated,deleted
-cache when login/logut

what you think?

Panels API and content options

agentrickard@drupal.org's picture
public
group: Panels
agentrickard@dr... - Thu, 2007-08-23 00:19

I started looking at MySite/Panels integration today. From my end, the obvious starting point is making MySite-defined content available as Panels.

Why?

  • MySite currently defines 14 plugin types (+3 contribs), which would explode the options available to Panels.
  • MySite now has a mysite_display() function that makes accessing a MySite content element possible from within another module or theme.

Here's the issue I ran into, and it may be that I simply haven't dived deep enough.


Current panels 2 status and needs

merlinofchaos's picture
public
group: Panels
merlinofchaos - Tue, 2007-07-10 00:25

Updated: Dec 11, 2007

Additionally, the following items are currently in progress:

  • panels_mini.module -- this module will create panels that will be exposed as blocks. I.e, the panel within a panel. A good use is to put a bunch of content in a one column panel, and then put that throughout the site.
  • panels_profile.module -- A panel that will let every user have their own display to edit their profile page. This is an outward facing page, and lets users have significant amounts of control over their "my account" page. This is sort of the starting place for a myspace type site.
  • panels_node_decorator.module (what a lousy name) -- lets you control node pages with panels. Should offer fine control so that nodes with different types or different taxonomy will get different displays. -- this is no longer necessary as panels pages came up with a clever way to do this for free.
  • panels template -- will allow your theme to use panel layouts instead of page.tpl.php, and use the panels layout engine to lay out your entire site.
  • new CCK integration -- integrate panels with CCK. At the very least, the 'node reference' and 'user reference' relationship, all by itself, would add immense power to Panels.
  • new Documentation. There are two forms: User documentation; there is an outline for that on a wiki page in this group. Please help. The second form is API documentation.

For some of these, there isn't a lot of design yet, just some ideas. This is the place to come to discuss the features these should have, and additional modules that can utilize Panels.


Syndicate content