From: Simon Cozens Date: Mon, 9 Apr 2007 13:27:40 +0000 (+0000) Subject: Some messing around to allow user-defined styles. Fixes #23. Actually it was there... X-Git-Tag: 1.2+svn20070808~10 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1a8bef4adce47cbbccc63c447f44d238eb5b2ddd;p=memories.git Some messing around to allow user-defined styles. Fixes #23. Actually it was there all along in Maypole, we just needed to make use of it. git-svn-id: http://svn.simon-cozens.org/memories/trunk@58 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- diff --git a/Memories/Config.pm.example b/Memories/Config.pm.example index 9796ab0..fb22d82 100644 --- a/Memories/Config.pm.example +++ b/Memories/Config.pm.example @@ -6,7 +6,10 @@ package Memories::Config; Memories->config->uri_base("http://memories.simon-cozens.org/"); # This is where your templates will live. -Memories->config->{template_root} = "/home/simon/maypole-sites/memories/templates"; +Memories->config->{template_root} = [ + "/web/memories/mytemplates/", # User-defined templates + "/etc/memories/templates/", # Factory templates +]; # Here is where uploaded photos will be stored. Your web server user # should own this directory. diff --git a/templates/header b/templates/header index 797ad08..20c6639 100644 --- a/templates/header +++ b/templates/header @@ -3,6 +3,7 @@ Memories - Photo Sharing [% IF photo %] - [% photo.title; END%] + [% IF photos %]