Won't take new format

Won't take new format

by Kieran Briggs -
Number of replies: 2

Hi All,

I've created a new format based on the Topics format, but added the ability to automatically create a course banner above all the content.

But the problem I've got is that although I can select it in the drop down list, when I click on either of the save buttons, it looses that format and defaults to the format at the top of the list.

Any ideas why this is happening?

Average of ratings: -
In reply to Kieran Briggs

Re: Won't take new format

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Kieran,

Do you have a format_yourformatname.php file in an lang/en_utf8 folder underneath your format code?  Say containing (php open close tags not shown):

// Used by the Moodle Core for identifing the format and displaying in the list of formats for a course in its settings.

$string['nametopcoll']='Collapsed Topics';

$string['formattopcoll']='Collapsed Topics';

?

If not you will need one and change the strings as appropriate.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Won't take new format

by Kieran Briggs -

Gareth,

Thanks for the advice.  I've added it in now and its working fine.

Cheers

Kieran