Hello,
Does the "local" folder method for modifying themes not work any more? I made a copy of the Matrix theme, activated it, and chose it for one of my test albums. However, I thought while I'm experimenting with modifications to my test theme, it would be best to put my latest changes in a local folder, but I can't get those changes to show up in the gallery pages.
That is, assuming my new theme is called "newTheme," I created a "local" folder: /gallery/themes/newTheme/templates/local. In there I placed a copy of theme.tpl and modified it. But there's no difference in the page view.
However, if I modify the theme.tpl in /gallery/themes/newTheme/templates, those changes do show up in the page view.
I tried moving the local folder to other folders within the "newTheme" directory structure, but no improvements.
What could I be doing wrong... or is this "local" feature no longer supported? I'm happy to work with my copied theme, I just want to know.
Thanks,
Carol
Gallery version = 2.0-beta-3+ core 0.9.31
PHP version = 4.3.10 apache
Webserver = Apache/1.3.27 (Unix) (Red-Hat/Linux) PHP/4.3.10
Database = mysql 4.1.9-standard-log
Toolkits = ArchiveUpload, Exif, Gd, Thumbnail, ImageMagick
Operating system = Linux moorepix.com 2.4.9-e.59 #1 Mon Jan 17 07:12:22 EST 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Posts: 16504
Can't find it right now, but I remember reading a post by valiant about a problem with theme.tpl not working this way. The other tpl files should be just fine.
Ah here we go, found it: http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=32658&highlight=
Don't know if this is intentional or a bug.
Posts: 25
Hi Nivekiam,
Yes I see, it might not work for theme.tpl. As a new gallery user, I'd consider this exception to be a bug, as I see theme.tpl as a perfectly good place to modify a theme.
I will keep an eye on the thread you reference to see what develops. In the meantime, I will modify the "non-local" theme.tpl.
Cheers,
Carol
Posts: 3
The "local" directory should be made inside the actual theme dir, for example:
/var/www/gallery2/themes/matrix/templates/local/ <- copy the "theme.tpl" file into that directory, and do the modifications on it. gallery (at least version 2) checks that folder first and uses the files in there primarily, then falls back to the main catalog.
Posts: 32509
local works now for theme.tpl too.
Posts: 36
I don't know if this helps anyone, but I have had the problem of the local folders being ignored, and I think I figured out why...... The original site I moved to the new location was a single site setup, while the new location had a multi site setup. I was putting local folders in the single site directory when I should have been putting them in the multi site directory (One level above the single one). I've unfortunately wiped out my install and I'm starting over, but I think this would have fixed my problem. Just one thing to double check in reference to the ignored local folder problem.
Operating System: Linux Open Suse 10
Webserver: Apache 2.2.0
Database: MySQL 5.0.18
PHP version: PHP 5.1.1
Multi site installation