this code works for me without problems, try it in different variants like droplet, direct output etc
it shows only childs from the current page/ from this current tree and only, if this childs are visible (visible-status not set to hidden! or none). if a child of this current page has visibility = hidden or none, it will not showing visible childs of this (hidden) child
example tree (Droplet call inside of a code- or wysiwyg-section on Page 1 && Page 2)
EN
--- Page 1
------ Subpage 1 (visibility = visible)
---------Sub-Subpage 1 (visibility = visible)
--- Page 2 (visibility = hidden)
------ Subpage 2 (visibility = visible)
---------Sub-Subpage 2 (visibility = visible)
result: Droplet show a submenu only if you visit Page 1 && Subpage 1, but not on Sub-Subpage1, Page 2, Sub-Subpage 2
important: if you add the droplet call inside of the content, for example in wysiwyg or code section, the start-level for this submenu is the current page and the menu will only show'n, if you stay on this page, and not, if you go to another page (without this droplet call) - if you need a automatically submenu, everytime, if childpages avaiable, add the droplet call in your index.php of the template
important: if you add a new droplet in AdminTools-> Droplet, it has the status = inactive automatically (see red icon in the list), maybe, thats the problem