Skip to content

Instantly share code, notes, and snippets.

@jbroadway
Created January 15, 2014 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbroadway/8437952 to your computer and use it in GitHub Desktop.
Save jbroadway/8437952 to your computer and use it in GitHub Desktop.
Rename /blog to /collection in the Elefant CMS.
; <?php /* apps/collection/conf/config.php
[Collection]
title = Collection
include_in_nav = On
; */ ?>
<?php // apps/collection/handlers/index.php
$override = count ($this->params)
? 'blog/' . join ('/', $this->params)
: 'blog/index';
echo str_replace (
'"/blog',
'"/collection',
$this->run ($override, $this->data, $this->internal)
);
?>
@evan70
Copy link

evan70 commented Jun 28, 2014

title = Collection is on menu only, but on page is > title = Blog settings ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment