Discussions
Build Menu programmatically
over 7 years ago by Justin H
I'd like to build a list of links automatically from every file in a subfolder of /Views.
For example, in a hypothetical /views/category/index.sgr, I'd like to build a list of links by enumerating all the files in that folder. e.g.
/Views/category/page1.sgr
/Views/category/page2.sgr
/Views/category/pageX.sgr
Any suggestions on how to accomplish this?