kongondo / MenuBuilder

Easily create navigation lists/menus using drag and drop
GNU General Public License v2.0
21 stars 9 forks source link

Bug: Not all pages displaying in ASM Select dropdown #21

Closed jlahijani closed 8 years ago

jlahijani commented 9 years ago

Not sure how I can replicate this for you, but it seems some of the pages in my site are not shown in the ASM Select option dropdown.

If using the Page Auto Complete option, it finds them however.

kongondo commented 9 years ago

This behaviour is not a bug. Similar to the limit set by ProcessWire's Page Autocomplete and in other places, for performance reasons, by default ASM Select in MenuBuilder is limited to returning a maximum of 50 results. However, you are not tied to using this. When editing your menu, look under the Main tab, just after the Menu Title, there is an option Pages selectable in menu in which you can specify a valid ProcessWire selector to return the number and/or types (e.g. based on a certain template) of pages you want shown in your ASM Select dropdown. Note that you can only see that setting if you are logged in as a SuperAdmin or have the permission menu-builder-selectable. In your case, all you would need to enter there is limit=XX, template!=admin. You need to be careful not to display unwanted pages in this selector (hence the template!=admin in there).

Edit However, I will update MenuBuilder so that you do not have to specify template!=admin yourself, as well as has_parent!=2, etc. In that case then, you would only need to use limit=XX

kongondo commented 8 years ago

Closing issue. Admin/User with permission 'menu-builder-selectable' can add 'limit=n' in the option 'Pages selectable in menu' under the tab 'Main'. The default '50 pages' limit will then be overridden. Note, you don't have to add template!=admin in your selector. That's taken care of by the module.