The current dev version of menu minipanels does not play nicely with the Context module. The content for any mini_panels assigned to output from menu_minipanels_preprocess_page_hidden() does not include any mini_panels that are placed on the page by Context.

Patch to follow.

CommentFileSizeAuthor
#1 support-context-1580072-1.patch1.98 KBcodycraven

Comments

codycraven’s picture

Status: Active » Needs review
StatusFileSize
new1.98 KB

The attached patch removes the placement of menu_minipanels_preprocess_page_hidden() before template_preprocess() in page rendering.

The page preprocess is then set as a standard page preprocess without any custom manipulation of the theme registry. To support Panels CSS the closure variable is regenerated within the standard menu_minipanels_preprocess_page().

There may be a less time consuming method of appending panels CSS output (instead of regenerating the entire closure), I just don't have time currently to dig into Panels to see if that's feasible.

damienmckenna’s picture

Title: Dev version does not play nice with Context module » Revert to using template_preprocess_page for better compatibility

Thanks for the suggestion, Cody. I've updated the title to be more clear of the benefits of doing it this way and will be testing it out over the next few days.

damienmckenna’s picture

Status: Needs review » Fixed

Good stuff, I've committed it, thanks cody.

Status: Fixed » Closed (fixed)

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