Back to SimpleMenu Support

martin13584
martin13584

In the component form it seems like it is possible to define a subpage class. However, i can't seem to figure out how to use the sub-pages function.

alxy
alxy

Mh, I see the CSS options imply subpages support, but the code has never had this feature. This plugin tries to be really simple.

If you have a good (and simple!) idea to add support for this, you can share it!

For anything more advanced I recommend the following plugin: https://octobercms.com/plugin/flynsarmy-menu

martin13584
martin13584

Thank you for the reply. I can look into your code. The simplest would be to make subpages when /somepage/somesubpage is set as the URL. This might be an easy solution. However I am not a good October developer, or any good at php but I will try.

Edit: The $result array could be a two-dimensional array. When a $page contains a '/' in it. A subpage should be added to the array. The rendering of the menu will be a little bit different since there would be nestled foreach-loops.

Last updated

1-3 of 3