i am trying to use a router to create more or less static subpages with certain templates without always having to create subfolders each time…
let’s say my structure is like that:
product-1
product-1/detail
product-1/overview
product-1/print
while i setup the page itself (product-1) it’ll have all informations needed to be able to create each of those subpages, thus i’d not need to manually create a folder each time.
array(
'pattern' => '(:any)/detail',
'action' => function($uid) {
// go to $uid/config and use this config-template (passing all $page variables are necessary obviously)
}
)