Reverse order of topics in each course (the last topic first)

Reverse order of topics in each course (the last topic first)

by Sebastian Snayder -
Number of replies: 14

Hello
does anyone know how I invest the topics so that they appear first in a course?

Only that the order is saved in the table "mdl_course_sections" in the field "section", I've tried editing from the DB but I do not see the change, I suppose for moodle to cache not be how it works exactly.

could you help me with this?

Average of ratings: -
In reply to Sebastian Snayder

Re: Reverse order of topics in each course (the last topic first)

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

There is a plugin, Weekly Format Reversed, that will do it, but it has not been updated since Moodle 2.5.

As an alternative, turn on editing mode in the course, then drag and drop the topics into the order you want them to appear.

In reply to AL Rachels

Re: Reverse order of topics in each course (the last topic first)

by Sebastian Snayder -


I need help by code, I know that with this code I can update the order and other field but I do not get to make it work properly

but the problem is that sometimes appear orphan issues, or doubles the number of topics







In reply to Sebastian Snayder

Re: Reverse order of topics in each course (the last topic first)

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Take a look at Gareth's Collapsed Topics format https://moodle.org/plugins/format_topcoll

I think it will do everything you want (and a lot more) and is actively developed by Gareth.

Specifically for your request about reversing the order of topics, see 'Current Topic First' in the plugin documentation, here:

https://docs.moodle.org/31/en/Collapsed_Topics_course_format#Structure_descriptions


Hope that helps

Richard

In reply to Sebastian Snayder

Re: Reverse order of topics in each course (the last topic first)

by Just H -
In reply to Just H

Re: Reverse order of topics in each course (the last topic first)

by Sebastian Snayder -

work in Moodle 3.1?

In reply to Sebastian Snayder

Re: Reverse order of topics in each course (the last topic first)

by Sebastian Snayder -

@Just H, Thanks man, Work good in Moodle 3.1 smile

In reply to Sebastian Snayder

Re: Reverse order of topics in each course (the last topic first)

by Sebastian Snayder -

Error with update titles of courses:

sad

Error code: inplaceeditableerror

In reply to Sebastian Snayder

Re: Reverse order of topics in each course (the last topic first)

by Just H -

That sucks, I'm thinking about upgrading soon to 3.1 (still on 2.8 at the moment).

A quick google led me to the language file for that error string but doesn't help me (not a dev):

 $string['inplaceeditableerror'] = 'Error calling update processor';

If you turn full debugging on does it give any more pointers to what the issue may be?

In reply to Just H

Re: Reverse order of topics in each course (the last topic first)

by Sebastian Snayder -

Active mode DEVELOPMENT,

when I edit the text and pressed the Enter key shows me that message,

You develop this plugin?

You give me guidance on how it could try to repair it?


regards


In reply to Sebastian Snayder

Re: Reverse order of topics in each course (the last topic first)

by Just H -

"You develop this plugin?"

I wish (in fact I wish I had the skills to develop any plugin!). Perhaps the best way to get an answer is to post a bug report on the github page (not familiar with the person who "owns" that github so not sure if he or she is active in the forums here).

In reply to Just H

Re: Reverse order of topics in each course (the last topic first)

by Just H -

In fact, just had a look into it again and the developers are in fact fairly prolific on moodle.org with quite a few plugins in the database (sadly not topics reversed though).

In reply to Just H

Re: Reverse order of topics in each course (the last topic first)

by Sebastian Snayder -

I still have the problem,

I can not solve the problem, I tried even add a script to prevent click for quick editing and have not been successful, moodle is complicated

sad

In reply to Sebastian Snayder

Re: Reverse order of topics in each course (the last topic first)

by Just H -

Just posted a link in the bug report you posted in github to what I believe is how to fix it  (as mentioned, I'm not a dev so no idea what it is explaining unfortunately). Hopefully the devs there will notice and get it sorted soon or if you have coding skills maybe it makes sense to you: https://docs.moodle.org/dev/Inplace_editable.