I'm new to EPiServer so you might find my question very simple. Please help!
Question: Where can I insert the code that programmatically creates a child page to the newly created EPiServer page?
Context: When an editor goes to the Edit View of the EPiServer Website and creates a new page, the system as expected creates an instance of the page type selected. However, I also want the system to create a child page to this newly created page based on custom code.
I've seen heaps of examples on how to programmatically create a page, but I have not seen samples of where to insert this code.
Let's say I have a Cars Classification Page Type. When an editor manually creates an instance of this via EPiServer, I want the system to go to the DB, get all the different classifications, and creates a child page for each of the classifications under the newly created Cars Classification Page Type (ie. Sedan Page, Hatchback Page, Sports Page).