How to generate pages if a url matches a certain pattern
I am investigating how we might use AEM to front our Ecommerce site. The key advantage I want to get out of this is that AEM allows the merchandisers to customise the look and feel of an ecommerce page without a full deploy of code etc if it is much more than a text change like we have now.
I'm sort of wondering what is the best way to handle things like different category pages for example. There are hundreds of these pages and the way I can see to do it is to create a base page eg /content/store/categories/baseCategoryPage and when somebody hits the url /content/store/categories/bread check to see if that page exists if not use the base category page. I also need each category page to have its own url for SEO reasons
This seems a sensible approach to me as it does not require every page to be created and maintained but it gives the team the ability to customise a certain category page if they wish to.
However how in AEM can I go about doing this, how can I specify a url pattern eg /content/store/categories/* that maps to this generic category page unless there is a specific page which fully matches the url?
Any thoughts would be great!