Forums | Mahara Community

Developers /
Duplicate Artefact


14 May 2020, 19:23

Hello,

Is the "artifact duplication" function provided in the Mahara code?
If not, how do you recommend doing this? With which Mahara function can I duplicate the artifact field in the database and its corresponding file?
Thank you very much for your answer!!

Robert Lyon's profile picture
Posts: 609

15 May 2020, 8:11

Hi,

I'm not sure what you are requesting.

Artefacts in Mahara are objects that can be used in multiple places within the system, for example an Image artefact can be displayed in more than one block on more than one page.

What artefact type are you wanting to copy / duplicate?

Cheers

Robert

15 May 2020, 18:00

Hi,
Thank you so much for your answer!
And yes, sorry I have not been precise in my question.
The goal is to clone the artefacts of the PluginArtefactFile.
So files, images, audio, sounds ...
Thanks!

Kristina Hoeppner's profile picture
Posts: 4043

17 May 2020, 20:32

Hi Antonella,

What do you want to achieve with the clone? Sometimes it may be better to extend the current artefact type rather than duplicate code. For example, plans and the 'MyCPD' plugin were similar at the start. The CPD plugin contains a couple of extra fields and thus the plans plugin was copied and the fields added rather than a configuration option offered. That makes it now hard to maintain the third-party plugin because it doesn't get the enhancements that the built-in plans plugin gets and it needs to be updated separately.

Cheers

Kristina

4 results