I'm still learning SilverStripe, and now I have a list of 50-60 pages that I have to create for the site. It has been suggested that I found a way to automatically populate the SilverStripe site tree with some code to save time (as opposed to manually creating each page one at a time). I have never tried something like this before (with or without CMS). I know what the names of the parent and child pages are, and I believe that I will need to create a loop to create the child pages for each parent.
Is this possible in SilverStripe? Would a for loop be the best approach or is there a more efficient way? If I can facilitate the creation of these pages, it will be great for me for this project and for the future, so any advice would be appreciated!
source share