Hi, I wanted to ask how to duplicate a core module. I need the same structure of the single student_view side menu item but with different reports of the Student module. I made a copy of the original module, changed the name of the folder and deleted the one that does not interest me, but it gives me an error. I ask where I can set it to show it or how to transform it into an additional module. Thanks.
Hi @infotecnica, I’m not quite sure I understand the desire to delete a core module and replace it with something different. However yes, deleting a core module will definitely cause an error. You can disable it instead, by going into System Admin > Manage Modules and changing Active to No. Hope this helps!
Hi, sorry if I wasn’t clear enough, no I don’t want to delete or replace any modules, I need to add some fields and be able to manage them as it happens from the Students module or similar. I wanted to replicate it so as not to modify the code of the original one. However it seems that I’m succeeding by replicating the code from the USER ADMIN module of the user_manage.php file.
I’m adding a student attendance management feature via smart card reader.
Hi @infotecnica Okay, in this case, my recommendation would be to not replicate the student module, but to build your student attendance features as an additional module. The potential problem with replicating a core module to make changes to it is that you would rapidly become out of sync with features and fixes to that module, and would need to manually manage a complete separate copy of the module. Alternatively, you can build your features into a new module without needing to copy existing functionality. Be sure to also check the System Admin > Custom Fields section, as this can let you add additional fields to a variety of record types without making code changes. Hope this helps!
hi. Thanks for the advice, I wanted to reply only to use part of the code and anyway I’m starting to do it with an additional module. In this module I add the fields I need and build an interface to manage only these fields related to card readings and anything else needed, leaving the fields related to students read-only, in this way I think I won’t distort the operation. Thanks for the support.