I have a requirement to support two different types of views. Example views are like below.
|_ Another Items
So I am registering the views in the router as below.
$type1 = new JComponentRouterViewconfiguration('type1'); $type1 ->setKey('id')->setParent($category, 'catid'); $this ->registerView($item); $type2 = new JComponentRouterViewconfiguration('type2'); $type2 ->setKey('id'); $this ->registerView($type2);
The first item pages works fine and ID of the item is successfully recognised. But when I go to item2 page, the ID of the item cannot be recognized from the URL. Any suggestions?