The attached patch allows excluding menu_minipanels from specified paths.

It uses the same approach as block visibility settings.

It adds a new textarea to the admin settings form only, to allow specifying pages to exclude ( see screenshot )

We use this to prevent the additional markup and js etc.. being added on pages where it's not required.

Please review and commit when possible.

Thanks!

DT

Comments

jweowu’s picture

Re-rolled patch to apply against the project repository.

davidwhthomas’s picture

Thanks, btw loving this patch, hopefully can be committed upstream soon.

damienmckenna’s picture

Status: Needs review » Needs work

This should replace the "hide on admin pages" option and default to "admin\nadmin/*". Thanks :)

josh waihi’s picture

Version: 7.x-1.0-rc3 » 7.x-1.0-rc5
Status: Needs work » Needs review
StatusFileSize
new2.77 KB

Rerolled with rc5 and replaces menu_minipanels_show_admin.

josh waihi’s picture

StatusFileSize
new2.77 KB

Got the admin check condition around the wrong way. Fix attached.

damienmckenna’s picture

StatusFileSize
new3.88 KB

I've adjusted it slightly - the variable is now called 'menu_minipanels_exclude_paths', I optimized the menu_minipanels_excluded_path() function slightly and I added an update script to replace the old variable.

damienmckenna’s picture

StatusFileSize
new3.81 KB

D6 patch.

damienmckenna’s picture

Status: Needs review » Fixed

@davidwhthomas: Thanks for putting the work into this feature, I've committed it to both the D6 and D7 versions.

davidwhthomas’s picture

Hey, glad to hear it!

Thanks for your work also on this cool module.

cheers!

DT

Status: Fixed » Closed (fixed)

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