name of a module inside course instead of description

name of a module inside course instead of description

by Leo Dil -
Number of replies: 7

Hi everyone,

I've been dealing with this probleem for a while now and I've done my best to find out why I can't get the description of my module to be shown.

To make it simple I've copied the Label module and give it a new name NewLabel and changed everything to NewLabels. After installation I get the name of this module inside my courses if I make one!

Example:

The NewLabel description is "What is Moodle?"

Instead of "What is Moodle?" I get NewLabel!

Does anyone have any tips.

Thanks in advance.

 

 

 

 

 

 

 

 

 

 

Average of ratings: -
In reply to Leo Dil

Re: name of a module inside course instead of description

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The 'label' module is a really bad test case to use - there is special case code all over Moodle core to deal with it differently from every other module type (which is probably why your copy of it is behaving differently from the original).

In reply to Davo Smith

Re: name of a module inside course instead of description

by Leo Dil -

thanks, so what is the best way  to begin with this test?

In reply to Leo Dil

Re: name of a module inside course instead of description

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Leo,

From your first post it is not clear at all what you are trying to do.

Joseph

In reply to Joseph Rézeau

Re: name of a module inside course instead of description

by Leo Dil -

I'd like to make a module that would be used as a bookmark and will only have a editbox for the name of the link.

Once I've added this module, I'll load it in YUI menu so that users could use it as a link.

Hope it is clear

thanks

In reply to Leo Dil

Re: name of a module inside course instead of description

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

I still do not understand why you would do this "I've copied the Label module" for your new module.

In reply to Joseph Rézeau

Re: name of a module inside course instead of description

by Leo Dil -

Making bookmarks to be able to click and go to a bookmark.

I thought that if I copy the the label module and just change the name to something else, I'd be able to change the description of the label to a editbox, so that you could some text and then use the new module via de YUI menu as a bookmark.

In YUI menu I've enabled the module and it works fine, the only problem is that I can't get the text from the new editbox to show up.

In reply to Leo Dil

Re: name of a module inside course instead of description

by Leo Dil -

Is there another way to make bookmarks available via YUI menu?