It would be nice for modules to be able to provide custom items for the pane drowdown links.

Patch coming up ...

Comments

Status:Active» Needs review
StatusFileSize
new1.01 KB

Status:Needs review» Needs work

Since there are 3 categories of links, I think we need to do this correctly and allow it for all of them rather than just 1 category.

Hi

Thanks. I'll further into it.

Status:Needs work» Needs review
StatusFileSize
new8.54 KB

I've refactored the get_pane_links() a bit, so that the data-set needed for the ctools_dropdown isn't too mixed with the concept if the pane links and their categories. Perhaps the separation of the links and categorization could be separated even further from the presentation, but maybe that's overkill?

As proof-of-concept, I've also added an "Edit mini panel" link which I find quite useful (and which is the main reason for this patch).

Status:Needs review» Reviewed & tested by the community

Tested and worked fine - really like the addition of editing the mini panels direct.

Status:Reviewed & tested by the community» Needs review
StatusFileSize
new11.98 KB
new66.99 KB

Hi gielfeldt,
Works great!

Suggestion:
pane_links.png

When we have keys, is more easily to change array.

<?php
/**
* Implements hook_get_pane_links_alter().
*/
function my_module_get_pane_links_alter(&$links, $pane, $content_type){
 
$links['top']['disabled']['title'] = t("Hide");
}
?>

Status:Reviewed & tested by the community» Needs review

Tested the patch in #6 in combination with #1948278: Get an edit link for the view panes in Page Manger. Everything worked great. I was able to edit Mini panels and Views.

Status:Needs review» Reviewed & tested by the community

Mark as reviewed and tested as for comment #7.

Status:Needs review» Reviewed & tested by the community

It would be sweet if we could also edit Custom Content Panes with this.

Here is a patch to add the edit link for custom content panes.

Sorry, here is an updated patch based on #10 that fixes Notice: Undefined index error.

Note: This patch needs to be applied to the ctools module to get the "Edit custom content pane" link in the dropdown links when editing a page using the Panels Standard Editor.

Hope this helps someone

@gmclelland can you please open an issue against ctools and post your new patch there? This issue is for the RTBC patch in #6 - that one's against panels.

@jenlampton - Agreed, here you go #2108413: Add edit link for custom content panes

Issue summary:View changes
Status:Reviewed & tested by the community» Fixed

Fixed!

http://drupalcode.org/project/panels.git/commit/c12191a

The ctools portion is in the sandbox for 1.4 and will be added before release.

Awesome! .... 2 years?!? :-)

Status:Fixed» Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.