Couple questions here...
So I have a site that is more Data driven than page driven. To be sure, there are pages, but those pages contain iterable lists of data, as well as use additional 3rd party REST API's to get their data. I have used these 3rd Party API's before, and I have my own custom obejcts to handle them.
Where is the best place for me to import my custom objects? mysite/code/MyPageController.php? I am assuming I should NOT store the code in mysite/code so I will be doing a require to get it in.
I have about 2000 records that I need pages for. Traditionally, I would make 1 template(not a silverstripe template) file, and change the content based on the query string. I assume this is possible in Silverstripe, and I am just looking in the wrong place. Or if it's not, is there a way for me to programatically import 2000 pages. Each page will contain at least 1 image, it's not a store so the commerce module is out or is it?
When dealing with 3rd Party APIs, is there an object that implements Iterator in Sapphire that can feed <% controls %> with a custom data source (lets just say an array) or does everything need to be derived from MySQL Queries for <% controls %>?
Thanks! Hope these questions make sense re: what I am trying to accomplish!