Add the ability for posts to have metadata. The option is turned off by default,
but can be enabled in the CS. If the option is turned on, and metadata is enabled on the site, then sets of template variables will be made available to the Post Form template, the Thread view template, and the CS view template.
This commit is contained in:
parent
3b336e56a4
commit
2af436a0ad
8 changed files with 181 additions and 27 deletions
|
|
@ -9,6 +9,7 @@
|
|||
http://www.plainblack.com/rfe/request-for-enhancement/-1493348--js-confirmation-operation/databaselink/re--1493348--js-confirmation-operation/databaselink.pm#OUb5zN8bltGdPG_2LJZMGQ
|
||||
- add: User profile data table is now a flat table, one column for each
|
||||
field.
|
||||
- add: Posts can now have Metadata (United Knowledge)
|
||||
- add: Calendar events now allow attachments
|
||||
- add: Calendar events now allow setting view permissions
|
||||
- add: WebGUI::Paginator now capable of more efficient SQL paginations using
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ addGroupingsIndexOnUserId($session);
|
|||
fixProfileDataWithoutFields($session);
|
||||
buildNewUserProfileTable($session);
|
||||
addAttachmentsToEvents($session);
|
||||
addMetaDataPostsToCS($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -105,6 +106,18 @@ sub fixProfileDataWithoutFields {
|
|||
}
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
sub addMetaDataPostsToCS {
|
||||
my $session = shift;
|
||||
my $db = $session->db;
|
||||
|
||||
print "\tAdding feature to CS to enable meta data in posts... " unless $quiet;
|
||||
$db->write("alter table Collaboration add column enablePostMetaData int(11) not null default 0");
|
||||
print "OK!\n" unless $quiet;
|
||||
}
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
sub buildNewUserProfileTable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue