Panels

Events happening in the community are now at Drupal community events on www.drupal.org.

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.

Torenware's picture

Embedding a Panels display.

I'm relatively new to Panels, and need to do something a little unusual -- I need to render a Panels display into content controlled by CiviCRM.

I can get this to work, but it's a little ugly. I haven't found any good code examples for doing this, so I looked at how Panel Nodes (6.x-3.5 for this and everything else panels-wise) did it, and am doing something like this:

<?php
  $did
= 11;
 
$display = panels_load_display($did);
 
$display->css_id = 'da-dashboard-group-panel';
 
$rendered = panels_render_display($display);
?>
Read more
akriel's picture

Use ahah on configure pane form for own content type

Hi,

i'm trying to get ahah running in the form for my custom ctools content type, which is shown at configure pane.
My goal is to provide a form with textfields and a "add textfield"-button, so the user is able to add new textfields.
After getting no results so far i began wondering, if maybe the modal dialog is not compatible with ahah?

Read more
patterndev's picture

How can I change a panel region from a vertical column to a horizontal row?

First off. Thank you for Panels! Although I just started w it.. it is awesome!

I am creating a panel that uses the 3 column 33/34/33 stacked layout. I am trying to add multiple pictures in a row instead of a column. I am using the bottom region for this but am only able to get dispay in a column. How can I change it to a row? Do I need to update the theme or can this be configured?

Thanks!

Read more
alexrayu's picture

Panel calling view through AJAX

Hi. I am building a panel with tabs for a travel agency, that has a list of taxonomy of places at the left. When a user clicks on "Africa" in that list, ajax passes the term id to a view that is called by a php file. That php file then return the view to the javascript that puts it into a corresponding tab. This is the problem however: When a new view is loaded, its pager loses the URL and redirects to the front page. Is there a way to pass the current URL to the dynamically generated view for its pager?

--
Best regards,
Alexei.

Read more
Remon's picture

Panels Portlets style plugin

I'm thinking of making a style plugin for panels module. this style will display panel panes as portlets; enabling collapsing and sorting panes, and saves panes state per-user (cookies based for example).

Read more
foredoc's picture

White Page with strange promption : when trying to add content to panel

Hi,

I am using ctools 6.x-1.5, panels 6.x-3.5.

I created a custom page with a panel layout, when I tried to add content, strange things happened sometimes:

1) When I tried to add custom content, and clicked finish button, the process seemed endless(always being with waiting status)

2) Sometimes when I try to add content to panel, it leads to a blank page with following output(tons of text, I only copied a little part):

Read more
foredoc's picture

There are currently no variants available and a page may not be added. Perhaps you need to install the Panels module to get a variant?

Hi,

I have installed ctools 6.x-1.5, and panels 6.x-3.5, and enabled all modules within these two packages.

When I try to create a new page through: admin/build/pages/add

It gives the following error:

There are currently no variants available and a page may not be added. Perhaps you need to install the Panels module to get a variant?

Any idea why?

Thanks.

Hang

Problem solved!
I do not know how and why, what I did: click into panels settings, and click "save" with nothing modified. After this, I am able to add a custom page.

Read more
molenick's picture

Editing panels_content management page - adding, removing, altering CTools provided widgets and their elements

I'm working on a site that uses og_panels to allow group admins to construct the layout of their group sites. These admins need only the most very basic options, and the plan is to remove any option deemed excessive from the end user experience. Most specifically, I'm looking to make alterations to the following:

1) Removing options in CTools dropdown menus on the panels_content page.
2) Altering, reordering and removing headings from the Add Content modal window

Read more
DrupalCuckoo's picture

How to redirect a view to a panel page using the "more link" function of views?

hi,

I'm having some trouble with Views and Panels (I'm using the latest version of both modules).

I've created a view with two "content pane" displays to list some sort of content (let's say blog entries). The first "content pane" displays the first 5 blog entries of a given user. The second "content pane" displays all blog entries of a given user. To get from the first "content pane" to the second I want to provide a "more" link on the first one.

Read more
leuski's picture

Panel and the default tabs

I have a question about how to modify the default view of a panel for authorized users. I have a content type: project. I have a view that lists all the projects. I have a panel page that contains that view. Now, if an authenticated user comes to this page, at the top of the page he sees the the title ("Projects") and two default tabs: "View" and "Edit Panel". I want to add another tab "Add Project" to that row that would be linked to the node/add/project page. Is this possible? How do I do that? I'm running drupal-6.16 and panels-6.x-3.3. Thank you for your help.

Read more
Andric Villanueva's picture

Panel plugins help

I have some questions about panels development.

I've recently figured out all the pieces of panels except relationships which I'm pretty sure I don't need yet; unless you guys know how it works and can enlighten me.

I want to override the node view page for certain types that I've got. For the tournament type I want to show a specific layout instead of using page.tpl.php or node.tpl.php or any variation thereof because that, well, it's almost worthless and panels is much more powerful even if more of a hassle in terms of development time.

Read more
chowdah's picture

How to create a Panel with an exposed form created with a View

Is this even possible?

I am using panels 6.x-3.x-dev and the latest Views module. I am trying to make a directory search page with Panels and am having problems with the output of a form that I am creating by exposing the input with Views. The page would be made up of two panels - one a glossarized directory listing (this works fine in the panel), the other an exposed form for a proximity search and a taxonomy filter. I have the View created and it works fine - the view exists with display types 'Page' and 'Content Pane'. Both outputs work fine in the Views preview, and the Page display type works when I visit the page's set url.

When I try to add either of the View's outputs [page or content pane] in a panel, nothing displays when I preview the panel or visit the panel's url. When I add the page type to the panel, I use the "Override URL:" option to enter the path of the Panel Page.

Read more
akriel's picture

Implementing revisions for Panel-Nodes

Hi,

i am building a website where i want the users to be able to create and edit node-panels with flexible layout.
Also i want to use the same revision features for these node-panels as for normal nodes.

While researching on this topic i found out, that this is not an intended feature. See panels_node.module:

<?php
/**
* Implementation of hook_load().
*
* Panels does not use revisions for nodes because that would open us up
* to have completely separate displays, and we'd have to copy them,
* and that's going to be a LOT of data.
*/
function panels_node_load($node) {

Read more
maddentim's picture

How to link block display's "more" link to panel page instead of view page

I am building a site with most content displayed through panels pages. The home page has a pane with a views block with a short list of content. I would like the "more" link to go to a panels page that contents the full page view of this particular content but the more link will only link to the view's page display. I suppose I could just put a footer in the block with a manual link... Is that the best way? Thanks.

Read more
DrupalCuckoo's picture

Panel/Ctools creates wrong path to CSS file

Hello,

I have a problem with Panels 3.3 and Ctools 1.3 (I guess). I'm using Drupal 6.16.

I use the "Flexible Layout" in Panels to create a two-column-display for my user profile pages. On my local drupal installation everything works fine. But when it comes to the online version the display of my two columns breaks.

I've found, that panels (or ctools) creates a css file which provides the needed css code for the two-columns. The path to this css file is wrong and I don't know how to fix this :(.

Here's what I think causes the problem:

Read more
netsensei's picture

String arguments trigger a 404

Hello,

I'm having a weird problem with panels arguments passed as a string context.

ctools-1.3
panels-3.3

I need to build a page which takes an optional date formatted string and passes it to a view pane powered by the Calendar module. I've build a panel page which takes 1 argument: /programs/!date where !date is my optional argument. Then, I configured the argument to be a string context since none of the other options were really fitting. Finally, I added the calendar view to the content lay-out and configured it to pass the panel argument to the view.

Read more
tnichols's picture

Rendering a single panels pane/region for AJAX callback

(Using Panels 6.x-3.3)

I'm working on putting an "edit" link next to each region/pane on my panels page. I have something mostly working that creates a modal dialog with a form to update the content, and then render the content back on to the page.

Read more
georginaw's picture

Panels and 'Page Not Found ' Error

I'm fairly new to panels and have been struggling with a 'Page Not Found' error caused by placing the User Picture within a content pane inside a node template. The User Picture shows up fine on the rest of the site and to user 1.

Attached is a screenshot of the problem.

If you have any ideas as to what could be causing this error, I would love to hear your ideas.

Read more
montesde's picture

Template Files and Panels add/edit forms

I'm using Panels extensively and I'm trying to override the add/edit form of a content type. I themed the content types edit form by registering the template file in template.php and then creating the a template file called node-meeting-edit.tpl.php. When I used panels to override the add/edit form and added the general form pane, the form went back to its original display. If I disable the form, everything works fine. Is there a way to get panels to use the template file for the forms? I have a feeling i may have to go the route of using the Forms API.

Read more
Zinz's picture

Passing Date argument to panel pane

Hi,
I have this problem. I have two views witch has two Panel pane display, both with
this argument Node:created year. I have also a panel page than contains these
two Panel pane: how can I pass argument?
thank's, sergio

Panels 6.x-2.0-alpha3
Views 6.x-2.8

Read more
Subscribe with RSS Syndicate content

Panels

Group organizers

Group notifications

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