ASPX templates
Version 7.x > ASPX templates > Create pages dynamically from template View modes: 
User avatar
Member
Member
Sheldon - 1/25/2013 1:47:24 PM
   
Create pages dynamically from template
Hello,
I wasn't sure where to post this exactly.
We are creating a site with multiple products. Each product has a product type. We would like to create a different template for each product type and then dynamically create the page for each product from the product template during runtime. Each page needs to have it's own URL, page title, meta data, etc. just like if we were creating it through CMS. There are too many parts to create the pages through CMS.
Can this be done in Kentico and if so, how? If not, do you have any suggestions on how to implement this?
Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/30/2013 1:24:27 AM
   
RE:Create pages dynamically from template
Hi,

The only way would be to create a custom utility using our API. I would recommend taking a look to the API examples to see how to work with documents, how to create them and so on. Also, this KB Article - it si for older version and it is about importing but in the sample code you can see how to work with document object and how to connect it to the SKU object.

Best regards,
Juraj Ondrus