[SOLVED] Reset All Layouts to Global Layout Settings

dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Sat, 2005-03-26 13:59

hello. i've imported all my G1 albums into G2. i have maybe 100 albums. the layouts in G1 were smaller and i could fit more columns than in G2. Now i want to change all the layouts. all of my previous layouts had 4 columns. now i want 3, but to change the layout requires changing each and every album.

is there a way to reset all album layouts to the global layout setting?

----

Gallery URL (optional): www.pinneo-triplets.com
Gallery version: 2b1
Webserver (with version): apache 2.0.52 (win32)
Datatabase (with version): mysql 4.1.8
PHP version (eg 4.2.1): 4.3.10
phpinfo URL (optional):
Graphics Toolkit(s): netpbm
Operating system: XP Pro
Web browser/version: IE6
G1 version (for migration bugs): 1.4.4pl6

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-03-26 14:29

i just did that.
go to site admin->Layout & Themes->Matrix-> Columns per album page = 4, save.

that did change all albums that use the matrix layout and global settings (for me that were all albums).

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Sat, 2005-03-26 15:48

thanks for replying. however, for some reason when i imported my albums from G1, none are set to the global setting, so changing the global setting doesn't affect the albums.

is there a way to force all the albums to select global settings? maybe by fooling around with the database?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-03-26 16:02

hmm, first time i do that, so do it at your own risk...
(it worked for me)

DELETE FROM `g2_PluginParameterMap` 
WHERE
g_pluginType = 'layout'  AND
g_pluginId = 'matrix' AND
g_itemId <> 0;

the <> 0 line makes sure it doesn't delete the default parameters, i.e. the one of your root album.

then go to yourgalleryurl/lib/tools/test/
and hit "FlushCache" and "FlushTemplates".

that's it.

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Sat, 2005-03-26 16:22

it worked! thank you very much! G2 is the best...