Skip to content

Commit

Permalink
Merge pull request #7 from emarref/master
Browse files Browse the repository at this point in the history
Custom Route in config
  • Loading branch information
jadwigo committed Aug 27, 2015
2 parents 242f38a + 5cbf6ca commit 0b13b34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ public function initialize()
if (empty($this->config['default_taxonomy'])) {
$this->config['default_taxonomy'] = 'tags';
}

if (empty($this->config['route_path'])) {
$this->config['route_path'] = '/taxonomies';
}

// Set up the routes for the sitemap..
$this->app->match("/taxonomies", array($this, 'taxonomies'));
$this->app->match($this->config['route_path'], array($this, 'taxonomies'));

$this->addTwigFunction('taxonomylist', 'twigTaxonomyList');
}
Expand Down
3 changes: 2 additions & 1 deletion config.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

template: assets/taxonomylist.twig

default_taxonomy: tags
default_taxonomy: tags
route_path: /taxonomies

0 comments on commit 0b13b34

Please sign in to comment.