Custom course format & Snap-Theme

Custom course format & Snap-Theme

by Matthias Grähn -
Number of replies: 3

Hi there,

We have created our own course format that offers a more hierarchical structure and navigation. With the themes we used so far we had an edit button with which we could switch to edit mode and edit sections texts etc.

With Snap-Theme (3.7 so far) that we want to use in future this seems to be disabled or working differently.

Question is: How do we achieve this or similar behavior without having to rewrite the whole course format. Are there some good examples where I could look for an solution? But then does the format still work with other themes...

Any hint appreciated

Kind regards

matt


Average of ratings: -
In reply to Matthias Grähn

Re: Custom course format & Snap-Theme

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
The edit button is essentially unconnected to the course format. Course formats for the most part are theme independent unless there is some sort of coupling when the theme overrides elements or the format has specific theme styles.

So are you saying that the Snap theme does not have an edit button?
In reply to Gareth J Barnard

Re: Custom course format & Snap-Theme

by Hartmut Scherer -
Since editing is always on in the Snap theme, toggling editing is no longer necessary or possible. I took the screenshot HERE

In reply to Matthias Grähn

Re: Custom course format & Snap-Theme

by Stuart Lamour -
Picture of Plugin developers
Hi Matt,

have a look at Snap with a standard topics/week format and you'll see it doesn't have a "turn editing on" button - if you can edit, it shows you the editing options, including editing section texts etc.

There is a link to turn editing on in the admin cog menu, but by default thats just for editing blocks and hides the course content and navigation in css.

.format-topics.editing.pagelayout-course #course-toc, .format-weeks.editing.pagelayout-course #course-toc, .format-topics.editing.pagelayout-course #region-main, .format-weeks.editing.pagelayout-course #region-main { display: none; }

It's difficult to know without seeing the format etc, but it might just work?