Panels 2
How to to set a panel page's title to the title of an embedded view?
Using latest Panels 5.x-2.x-dev
I have a panel page where the main content area is an embedded View. This view takes arguments which become part of its title, so the title changes dynamically (it's a year/month archive drill-down view). (See screenshot attached)
I want to set the title of the overall panel page to the embedded view's title. Anyone know how to do this? If it can't be done through the UI (which I suspect), please suggest code approaches.
This forum seems pretty quiet, hoping some of the experts are still out there!
Passing arguments into page and then into view
I'm working on a site where I have a pretty dynamic use of panels idea, and I'm having a problem implementing it.
Need help with node/add panel override and CAPTCHA
While I've been using Panels 2 extensively, I've only just started with overriding the node/add form and have run into a bit of trouble.
The use case is simple: we have a Volunteer node type and want anon users to be able to submit this form and create unpublished nodes for later admin review. We use panels for layout and sidebars for all the user-facing pages on the site, so we wanted this form to be in a panel as well.
Keeping Some Regions around for Panels that use the "disable drupal blocks" setting
I (heart) panels, and my clients are crazy for them. It's simply the most intuitive way to handle content layout.
All of the recent projects I've worked on have been designed around making panels fit in easily. One of the tricks I've discovered is a simple technique to use in template.php for keeping some block regions around (e.g. regions in the header/footer area, useful for nav, banner ads, etc) even when using the "Disable Drupal blocks/regions" checkbox from the Advanced pane.
Here's the code:
<?php
// Retain some block regions even if cleared by panels...
$save_regions = array('header', 'bottom_banner', 'footerblocks');
foreach($save_regions as $id) {
if ($vars[$id] == '') {
$vars[$id] = theme('blocks', $id);
}
}
// special handling for $footer_message
if ($vars['regions']['footer'] == '') {
$vars['footer_message'] .= "\n". theme('blocks', 'footer');
}
?>Now, a little explanation and some questions.
How can I override the url of a view pane
I am using a panel to override a page in OG
node/%/event
my view argument for event listings is http://mysite.com/events/1/2/3/4/all/6
my panel page url
http://mysite.com/node/555/allevents/1/2/3/4/all/6
Panel page context: NID, relationship: Group
If I directly add the view to the pane:
1. no context for any of the arguments (I could not get it to work when using legacy view to import a view into a pane if the panel page has context and I tried to set one of the view arguments to that context.
2. arguments: @1/@2/@3/@4/%1/@6
Panels 3 UI Design Thread
This is a working thread to discuss the (still far in the future) Panels 3 UI. I want to get work started on ideas to improve the existing UI, and for the moment we are allowed to go pie in the sky and suggest features. Please assume that pie in the sky features will eventually be shot down, though, but it's on the table because sometimes pie in the sky can really work or be made to work.
Getting Group Detail block to appear in Panel on non-group node
Hopefully someone else has encountered this. I've used panels to take over a page generated by the Calendar Module. The Calendar view inserts the node ID as an argument into the url, (1646 below).
http://mysite.com/group/1646/calendar/2008/9/15
However, the organic Groups panes don't recognize this argument, because
1) You can't insert them unless you restrict the Panel Page to a "Group enable" content type
2) The Calendar URL that I'm taking over is not a node, so it can't find the ID.
When to use Legacy views and Views panes
It is not clear to a new panels 2 user when to use legacy views and when to use views pane, what is the difference, how to use them etc. I think there should be something about these in the panels 2 tutorilas.
It seems to me that views panes offer more options - but I'm not sure.
Would someone who is experienced write a tutorial about it?
Thank you very much!
(I do not wanna be too brash, but I had a support request: http://drupal.org/node/282897 - maybe a detailed answer to this could be the illustration the answer of the above questions...)
Is there a way to get the context argument to a custom content pane?
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
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:





