Add the inheritUrlFromParent property, which causes the asset to prepend its

parent's URL to its own URL. Boolean, default off, found in the meta tab.
This commit is contained in:
Chris Nehren 2008-05-30 23:38:07 +00:00
parent 3dc01af30a
commit 9c77fdcce7
5 changed files with 130 additions and 4 deletions

View file

@ -1,4 +1,6 @@
7.5.11
- add: Assets can now inherit their parent's URL, prepended. Check the
meta tab.
- rfe: Not being limited to single-worded Tags
- SQL Form no longer ships with WebGUI. Use Thingy instead. However, out of
respect for those using it, we only uninstall it if you have no sites using

View file

@ -68,6 +68,7 @@ removeSqlForm($session);
migratePaymentPlugins( $session );
removeRecurringPaymentActivity( $session );
addUserListWobject( $session );
addInheritUrlFromParent( $session );
finish($session); # this line required
@ -1501,6 +1502,15 @@ sub addUserListWobject {
}
#----------------------------------------------------------------------------
# Add the inheritUrlFromParent property for all assets
sub addInheritUrlFromParent {
my $session = shift;
print "\tAdding inheritUrlFromParent flag for all assets..." unless $quiet;
$session->db->write('alter table assetData add column inheritUrlFromParent int(11) not null default 0');
print "DONE!\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
#----------------------------------------------------------------------------