What you propose should be easy enough to do - currently with annotation blocks there is a new copying option called 'fullinclself' which means on copying all blocks/artefacts get duplicated even when copying ones own page.
To achieve what you want in v16.10 Mahara all you would need to do is find the following in /artefact/internal/blocktype/textbox/lib.php
public static function default_copy_type() {
return 'full';
}
And change to:
public static function default_copy_type() {
return 'fullinclself';
}
If you wanted to make it an optional thing then you could do something similar to the Tagged Journals block where there is a 'Block copy permission' field option in the block configuration.
So you could have 'Block copy permission' options of:
- full: Current functionality
- fullinclself: Current functionality for other users is also applied to self
If you are on a version earlier than 16.10 then the relevant commits will need to be backported to your particular version.
Hi Gordon,
What you propose should be easy enough to do - currently with annotation blocks there is a new copying option called 'fullinclself' which means on copying all blocks/artefacts get duplicated even when copying ones own page.
To achieve what you want in v16.10 Mahara all you would need to do is find the following in /artefact/ internal/ blocktype/ textbox/ lib.php
public static function default_copy_type() {
return 'full';
}
And change to:
public static function default_copy_type() {
return 'fullinclself';
}
If you wanted to make it an optional thing then you could do something similar to the Tagged Journals block where there is a 'Block copy permission' field option in the block configuration.
So you could have 'Block copy permission' options of:
- full: Current functionality
- fullinclself: Current functionality for other users is also applied to self
If you are on a version earlier than 16.10 then the relevant commits will need to be backported to your particular version.
Cheers
Robert