Forums | Mahara Community

Developers / Change the order of the progressbar

Posts: 25

12 May 2017, 8:39 PM

Hello,

I would like to change the order of the institutions in the progress bar. By default there is the raw theme, and I would like to replace it with the current theme / institution.

I found the artefact_get_progressbar_items function in artefact/lib.php, and I read that I can use the function local_progressbar_sortorder in the local folder, but how can I do it ?

Thank you for your help !

Posts: 343
Re: Change the order of the progressbar

29 May 2017, 11:26 AM

Hi Antonella,

I'm not quite sure what you are meaning? Are you taking about the institution selector in the Profile completion sidebar?

If it about that selector then the institution that appears first on the list is the institution that appears first for a user. Currently there is no way to force a particular institution to appear first by default. If you wanted to do this manually then you would need to make a change in the progressbar_sideblock() function.

If the user is in only one institution then they don't see the selector at all.

Or are you meaning something else? if so can you describe the page/place you see it

Cheers

Robert

Posts: 25
Re: Change the order of the progressbar

29 May 2017, 7:43 PM

Hello Robert,

Thank you for your help !

I change the function progressbar_sideblock and it works :

Cheers

Robert

6 results