Skip to content

Commit c7290da

Browse files
committed
Portfolio: Add missing steps for correct portfolio tool functionality - refs #5684
Added query to create and extra field for tags Added query to create the setting param to make visible the tool
1 parent 7a72f09 commit c7290da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

main/install/configuration.dist.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,14 @@
11161116
// - edit src/Chamilo/CoreBundle/Entity/Portfolio.php, PortfolioCategory.php, PortfolioAttachment.php and PortfolioComment.php PortfolioRelTag.php
11171117
// and follow the instructions about the @ORM\Entity() line
11181118
// - launch composer install to rebuild the autoload.php
1119+
// To allow to add tags to portfolio items, create a extrafield called "tags" that can be modified and visible to others
1120+
/*
1121+
INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES (19, 10, 'tags', 'tags', '', 0, 1, 1, 1, 0, NOW());
1122+
*/
1123+
// To enable (make visible for students) the new Portfolio tool when creating a course it's necessary to create a new setting parameter
1124+
/*
1125+
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url, access_url_changeable, access_url_locked) VALUES ('course_create_active_tools', 'portfolio', 'checkbox', 'Tools', 'true', 'CourseCreateActiveToolsTitle', 'CourseCreateActiveToolsComment', null, 'Portfolio', 1, 0, 0);
1126+
*/
11191127
//$_configuration['allow_portfolio_tool'] = false;
11201128
// Allow advanced selection of who can view the posts and comments. It requires DB changes:
11211129
// ALTER TABLE portfolio_comment ADD visibility SMALLINT DEFAULT 1 NOT NULL;

0 commit comments

Comments
 (0)