Hi,

I spend a couple of hours tonight trying to find why the category 'Page elements' was not showing up in panels and here's the reason.

See this line: http://cgit.drupalcode.org/oa_site_layout/tree/plugins/content_types/pan...

The category key must be an array.

Like this:


 'category' => array(t('Page elements')),

It would be great if this could be fixed in all the plugins.

Thanks.

CommentFileSizeAuthor
#2 2780909.patch4.94 KBPol
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pol created an issue. See original summary.

Pol’s picture

FileSize
4.94 KB

Here's the patch.

Pol’s picture

Mmmh weird, if I use the name Page elements, I still do not see them.

If I change the name to something else(random string), I see the category properly when trying to add content in my panel page.

Help requested please!

Pol’s picture

Status: Active » Reviewed & tested by the community
Argus’s picture

Priority: Major » Normal
Status: Reviewed & tested by the community » Active

Can't see why this is a major issue. Also for me the category Page Elements is displayed fine. Did you check on a fresh OA install?

Pol’s picture

This is a major issue for us actually, sorry I shouldn't be so hasty when filling an issue :-)

Actually, we created a theme based on oa_radix and we're unable to access to some panels pane, the ones in the "Page elements" category.
I'm trying to debug but I'm unable to find where it comes from.

I just installed a fresh Openatrium 2.66 locally to test again... I will report in a couple of hours.

Thanks.

Pol’s picture

I just tested on a fresh install and you can reproduce the bug.

1) Install a fresh OpenAtrium 2.66.
2) Edit the site_template page (Panels Everywhere) (screenshot)
3) Try to find the 'Page elements' category, it doesn't show up. (screenshot)
4) If you remove, for example, the "Page Title" element, you're unable to add it back.

I hope it helps.

Pol’s picture

After some research, there is a call to panopoly_admin_is_advanced_plugin() in panopoly_admin_preprocess_panels_add_content_modal().
If I return an empty array here in panopoly_admin_is_advanced_plugin(), I can see the category 'Page elements'.

Could you explain the behavior ? Why these categories are removed ?

Pol’s picture

Going to admin/panopoly/settings/panopoly_admin and enabling "Use advanced Panel Plugins" fixed the issue, I can see the category now.

I can close the issue and the patch is irrelevant now.

Status: Fixed » Closed (fixed)

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