Added feature to allow users to determine whether new / unplaced assets are added to the top or bottom of the first content position of Layouts.

This commit is contained in:
Frank Dillon 2008-03-08 17:07:29 +00:00
parent d49b7a7077
commit eb8b2f3f31
4 changed files with 287 additions and 222 deletions

View file

@ -7,6 +7,7 @@
- fixed: loadAddConfigs loads hidden files
- ensure proper XML encoding for ITransact messages
- fixed: fatal error duplicate keywords added to a wiki page
- rfe: added the ability to choose whether assets should be added to the front or end of the first content position of the page (Dept of State)
7.5.5
- fixed: Several typos in the new Calendar help documentation.

View file

@ -23,6 +23,7 @@ my $quiet; # this line required
my $session = start(); # this line required
convertCacheToBinary($session);
addLayoutOrderSetting( $session );
finish($session); # this line required
@ -41,6 +42,22 @@ sub convertCacheToBinary {
# # and here's our code
#}
#----------------------------------------------------------------------------
# Add a column to the Gallery
sub addLayoutOrderSetting {
my $session = shift;
print "\tAdding Layout Order Setting... " unless $quiet;
$session->db->write( q{
ALTER TABLE Layout ADD COLUMN assetOrder varchar(20) default 'asc';
} );
$session->db->write( q{
UPDATE Layout SET assetOrder='asc';
});
print "DONE!\n" unless $quiet;
}
# --------------- DO NOT EDIT BELOW THIS LINE --------------------------------