Since ctools exists for D7, it seems only fitting to put the menu tree content type back again in the D7 version. Here is a patch that takes care of that.

I had to return the form array in the content type edit form function, to just change the referenced form does not work anymore.

Comments

Shadlington’s picture

Subbing

fabsor’s picture

Here is a reroll.

jason.bell’s picture

I've applied the patch in #2 to the latest 7.x-2.x-dev version and get menu tree content available when adding content to panels. However, the configuration form is not loading and cannot be saved as panel content. Should this be working or is too early?

I assume changes to the menu block configure form that is referenced by the menu tree plugin is causing this. I'm unfortunately under-qualified to offer patches, but happy to test out further changes that get this working again.

valante’s picture

Subscribe. It seems ridiculous to me that Panels doesn't offer this functionality on its own, without a need for blocks.

fabsor’s picture

Yet another reroll.

mikl’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new2.23 KB

There was a small problem in the code, it tries to take $form by reference, causing an error when it tries to display the settings form.

It's fixed in this patch.

Otherwise, this works great :)

mikl’s picture

StatusFileSize
new2.01 KB

Never mind the previous patch, I neglected to remove some debugging code.

hnln’s picture

This patch doesn't apply to 2.2 or dev, is this allready being integrated ?

johnalbin’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, guys! I took your patch and I've fixed a couple other bugs in that form. You're in the CHANGELOG and your profiles should show menu_block commits now. :-)

All committed. http://drupalcode.org/project/menu_block.git/commit/a27d8a3

Status: Fixed » Closed (fixed)

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