3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 29, 2014   (RSS)

By Deborah - July 25, 2014 - edited: July 25, 2014

Hi. I've never used the Category Menu feature, but after seeing a recent post with a plugin for 'Root Category Lock" I decided to check it out. (I absolutely needed a root category lock, so the plugin is perfect for my needs!)

I'd like to limit the number of menu levels the user can enter. In addition to the parent category (level 0?) I would like to have available only one level beneath that (level 1?).

I looked at the schema for customCategory, but don't see where I could set a limit. Can this be done in some way?

Thanks in advance for your help.~ Deborah

By Steve99 - July 29, 2014

Hi Deborah,

Absolutely, the Root Category Lock plugin is definitely a key plugin in our cmsb dev kit now (thanks again Dave!).

The menu levels are set in the Advanced tab when editing the Category menu. In the schema file it is '_maxDepth' => '1', Setting that to 1 would allow for Parent Categories you created (and locked) with the ability to add one level of Child Categories beneath (like in a single level drop down menu).