armais
02-06-2013, 01:43 PM
Hi
I want to create some additional route handlers to the CMS articles, but not sure how to do this.
The data managed by the cms is fine. viz section->node->article->categories. What I am looking for is a products landing page as well as a product category page.
/products/ <-- this will show list of all articles across all product categories
/products/1-category <-- this page will show all articles from 1-category .. as well as top 10 articles from categories other than 1.
What I was thinking is - I will create my list.php, content.php which will do the job. But I dont know where to hack the routes.
Maybe there's a simple way.
thanks
I want to create some additional route handlers to the CMS articles, but not sure how to do this.
The data managed by the cms is fine. viz section->node->article->categories. What I am looking for is a products landing page as well as a product category page.
/products/ <-- this will show list of all articles across all product categories
/products/1-category <-- this page will show all articles from 1-category .. as well as top 10 articles from categories other than 1.
What I was thinking is - I will create my list.php, content.php which will do the job. But I dont know where to hack the routes.
Maybe there's a simple way.
thanks