Forums | Mahara Community
New entry for achievements page
24 October 2010, 4:43 AM
I'd like to add a new form block (Presentations) to the Achievements page of the Resume builder. How would I do that? Which file(s) in the code call a block (for instance Books & Publications) to this page?
25 October 2010, 6:21 AM
Off the top of my head, to create the relevant classes and the edit interface:
- artefact/resume/achievements.php -> Add 'presentation' to the compositetypes array
- artefact/resume/lib.php -. you'll need to add a new ArtefactTypePresentation class similar to the Book and Certification classes
You'll also need to create a table to store the data in, so you'll need to edit:
I'm not 100% certain whether you'll need to modify anything else, but this should point you in roughly the right direction.
Perhaps you'll consider submitting a patch (git format-patch -s) or pushing to a new branch on gitoriouos to share with others?
26 October 2010, 10:12 AM
The new 'Presentations' block popped up fine and seems to be in full working order. I tested things on a newly installed Mahara site with a replacement resume folder. Perhaps you Andrew or others could also run some testing.
The files that needed to be changed or added are
- 4 new files
- 11 adapted files
The code for 'presentation' has been added by copying and pasting equivalent code snippets/blocks for 'book'.
I have uploaded the replacement resume folder with the listed files in place (resume.zip) to Files. Perhaps one of the more knowledgeable members of this community can take this further as far as a patch or whatever else is concerned.
(screenshot showing the new item)