"local" folder isn't being checked

bobny

Joined: 2006-01-01
Posts: 4
Posted: Mon, 2006-03-20 19:17

Comments on various pages in G2 code say that instead of modifying the page, make a copy and put it in a folder named "local" and G2 will check there for files. I tried it, but G2 never looked. Now it could be that I put the local folder in the wrong place (though I tried every location I could think of). Is there something I am missing?

Thanks,
Bob

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Tue, 2006-03-21 09:11

if you're referring to Theme template files, /path-to/gallery2/themes/theme/templates/local/ should be created by you and read by G2. basically, copy over ~/theme/templates/*.tpl files into the sub-directory ~/local/ and edit those versions instead.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Fri, 2006-03-24 05:11

You should make a "local" directory where ever you find the file. Copy the file into that local dir, then modify it there.

Simple example:

file found at /var/www/gallery2/themes/dog/theme.css
new "local" dir at /var/www/gallery2/themes/dog/local/theme.css

file found at /var/www/gallery2/themes/dog/templates/album.tpl
new "local" dir at /var/www/gallery2/themes/dog/templates/local/album.tpl
_________________________________
Support & Documentation || Donate to Gallery || My Website

 
bobny

Joined: 2006-01-01
Posts: 4
Posted: Fri, 2006-03-24 14:32

I did exactly that. I put a local folder in the template folder. G2 still displayed the defaut item. Is this a cache issue?

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Fri, 2006-03-24 14:38

a cache issue from with G2 most likely. just run the Site Admin > Maintenance > Maintenance Tasks > "delete database/template cache & optimize database" and that should fix it up. clear our your browser cache just to make sure.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2006-03-26 09:22

When ever I do this, changes are instant and I don't have to clear my browser cache or G2 cache... but doing both could help. You could also try using an infrequently used browser to test the changes. I use firefox and sometimes load a site in ie or opera since their cache is not likely to be "current".
_________________________________
Support & Documentation || Donate to Gallery || My Website

 
yow

Joined: 2006-05-20
Posts: 7
Posted: Sat, 2006-05-20 18:25

I created the new "local" folder and copied the theme.tpl into that folder. Do you know why it's not grabbing from the "local" folder? I was trying to remove the "Simpsons" icon at the bottom and it did not remove it.

I've also tried to do change the original theme.tpl and that did not work either.

I have cleared my cache and that did not help.

Any ideas?

Thanks!

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Sat, 2006-05-20 19:04

no, theme.tpl always resides in /themes/theme-name/ not /themes/theme-name/templates/local/ or /themes/theme-name/templates/

 
yow

Joined: 2006-05-20
Posts: 7
Posted: Sun, 2006-05-21 00:22

thanks for the reply scaturan!

In the directory: /themes/matrix/ - there are only 2 files there: theme.css, theme.inc

theme.tpl is actually located in /themes/matrix/templates/

i haven't moved anything since the initial install. I did an automatic install through my web host, site5.com.

should i just move the theme.tpl out from its current location and put it into the main directory of /themes/matrix/ ?

Thanks!

 
google21

Joined: 2007-04-20
Posts: 19
Posted: Sun, 2007-04-22 22:07

did you figure it out yow ?? I am having the same problem but can't find a soultion anywhere. I would be very grateful if you could help me.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-04-22 22:19