Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be nice for modules to be able to provide custom items for the pane drowdown links.
Patch coming up ...
Comments
Comment #1
gielfeldt CreditAttribution: gielfeldt commentedComment #2
merlinofchaos CreditAttribution: merlinofchaos commentedSince 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.
Comment #3
gielfeldt CreditAttribution: gielfeldt commentedHi
Thanks. I'll further into it.
Comment #4
gielfeldt CreditAttribution: gielfeldt commentedI'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).
Comment #5
MiSc CreditAttribution: MiSc commentedTested and worked fine - really like the addition of editing the mini panels direct.
Comment #6
sergiu.savva CreditAttribution: sergiu.savva commentedHi gielfeldt,
Works great!
Suggestion:
When we have keys, is more easily to change array.
Comment #7
gmclelland CreditAttribution: gmclelland commentedTested 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.
Comment #8
MiSc CreditAttribution: MiSc commentedMark as reviewed and tested as for comment #7.
Comment #9
gmclelland CreditAttribution: gmclelland commentedIt would be sweet if we could also edit Custom Content Panes with this.
Comment #10
gmclelland CreditAttribution: gmclelland commentedHere is a patch to add the edit link for custom content panes.
Comment #11
gmclelland CreditAttribution: gmclelland commentedSorry, 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
Comment #12
jenlampton@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.
Comment #13
gmclelland CreditAttribution: gmclelland commented@jenlampton - Agreed, here you go #2108413: Add edit link for custom content panes
Comment #14
japerryFixed!
http://drupalcode.org/project/panels.git/commit/c12191a
The ctools portion is in the sandbox for 1.4 and will be added before release.
Comment #15
gielfeldt CreditAttribution: gielfeldt commentedAwesome! .... 2 years?!? :-)