Presentatie door Sander Potjer - Joomla 3.6: nieuwe router. Gegeven tijdens de Joomla SEO Expert Sessie op 18 maart in Bussum: https://perfectwebteam.nl/expert-sessie/joomla-seo
18. Maar ik zie geen verschil?!
Klopt, nog niet zichtbaar in de URLs, wel in de code:
class ContentRouter extends JComponentRouterView {
public function __construct($app = null, $menu = null) {
$categories = new JComponentRouterViewconfiguration('categories');
$categories->setKey('id');
$this->registerView($categories);
$category = new JComponentRouterViewconfiguration('category');
$category->setKey('id')->setParent($categories, 'catid')->setNestable()->addLayout('blog')
;
$this->registerView($category);
$article = new JComponentRouterViewconfiguration('article');
$article->setKey('id')->setParent($category, 'catid');
$this->registerView($article);
$this->registerView(new JComponentRouterViewconfiguration('archive'));
$this->registerView(new JComponentRouterViewconfiguration('featured'));
$this->registerView(new JComponentRouterViewconfiguration('form'));
parent::__construct($app, $menu);
$this->attachRule(new JComponentRouterRulesMenu($this));
$this->attachRule(new JComponentRouterRulesStandard($this));
}
}