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
Posts: 1153
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.
Posts: 3236
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
Posts: 4
I did exactly that. I put a local folder in the template folder. G2 still displayed the defaut item. Is this a cache issue?
Posts: 1153
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.
Posts: 3236
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
Posts: 7
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!
Posts: 1153
no, theme.tpl always resides in /themes/theme-name/ not /themes/theme-name/templates/local/ or /themes/theme-name/templates/
Posts: 7
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!
Posts: 19
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.
Posts: 32509
clear your template cache.
FAQ: How can I clear cached data?
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage