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.
BarisW,
I know you are only really accepting minor maintenance on this module, but it would be nice to have an additional option to lock down the menu parent item per content type as well.
I've had two projects come up which needed the current functionality + the menu parent item locked down as well... This module for some reason was also quite hard to find... but now I have found this module I can go back and complete an old community project I started about a year ago...
Anyhow i've attached my modifications, let me know what you think!
Comment | File | Size | Author |
---|---|---|---|
menu_force.module.txt | 3.04 KB | Caffeine Addict |
Comments
Comment #1
BarisW CreditAttribution: BarisW commentedThanks. Patch looks good.
I'll try to change it to better work UX-wise. With your patch I can select to force the menu parent and leave the menu force checkbox unselected.
I'll try to make it so that your checkbox is only available when the first checkbox is selected.
O Make the Menu Settings mandatory for this content type
X Make the Menu Settings mandatory for this content type
O Lock the Menu Parent as well
Comment #2
Caffeine Addict CreditAttribution: Caffeine Addict commentedGreat ideas on the UX front BarisW, didn't think about making the second available only when the first has been selected... If you don't get time let me know and I may be able to finish this option off as part of the work i'm currently doing.
Would there be advantages to being able to lock the menu item but allowing choice over making adding it compulsory? Just playing the other side of the field...
Comment #3
Caffeine Addict CreditAttribution: Caffeine Addict commentedI have also extended this to allow forcing of revisions, would you like me to upload the new file?
Not sure if you would want to include force revisions in the menu module but it falls in with forcing content options... Maybe rename the module if you want to include this as well.
Let me know..
Comment #4
BarisW CreditAttribution: BarisW commentedForcing of revisions would not make sense to be part of Menu Force. And I believe there are already module who can do this for you.
The rest of the issue (force menu parent item) is included in the next release. Thanks for posting!
Comment #5
Caffeine Addict CreditAttribution: Caffeine Addict commentedNo worries thanks very much BarisW!