Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Blocks: Difference between revisions

From MoodleDocs
Line 22: Line 22:
There is a new settings.php method to do this, I don't know that much about it, so could someone who does change this page please?--[[User:Mike Worth|Mike Worth]] 05:01, 28 January 2009 (CST)
There is a new settings.php method to do this, I don't know that much about it, so could someone who does change this page please?--[[User:Mike Worth|Mike Worth]] 05:01, 28 January 2009 (CST)


When was this feature added? I'm having issues with my block with seemingly multiple Moodle 1.9 installs not being able to display the settings page. Could we have '''any''' documentation on this?--[[User:Jonathan Doane|Jonathan Doane]] 13:26, 30 August 2010 (EST)
: When was this feature added? I'm having issues with my block with seemingly multiple Moodle 1.9 installs not being able to display the settings page. Could we have '''any''' documentation on this?--[[User:Jonathan Doane|Jonathan Doane]] 13:26, 30 August 2010 (EST)
 
:: See [[User_talk:Frank_Ralf/Experience_of_converting_a_module_to_Moodle_2]] for an example. --[[User:Frank Ralf|Frank Ralf]] 19:40, 16 November 2010 (UTC)


== block_simplehtml ==
== block_simplehtml ==

Revision as of 19:40, 16 November 2010

This page is for reporting errors, suggesting improvements, etc. Feel free to contribute!

"Notifications"

At this part: "At this point our block should be capable of being automatically installed in Moodle and added to courses; visit your administration page to install it and after seeing it in action come back to continue our tutorial."

This is not clear since Moodle no longer has a single administration page.

More to the point would say to go to the /admin/index.php page for your Moodle install. On my latest version of Moodle 1.8 the link in the Administration block is labeled "Notifications".

Splitting up

I split the page up into sub pages because I got an error message that the page was over 32 KB. The three appendixes are now separate pages. --Frank Ralf 12:16, 26 January 2009 (CST)

Increasing readability

  • Colored the code
  • Inserted some line breaks
  • Amended the appendixes --Frank Ralf 16:24, 6 February 2009 (CST)
  • Started correcting the old links (Blocks_howto) --Frank Ralf 16:24, 6 February 2009 (CST)

New new settings.php method

There is a new settings.php method to do this, I don't know that much about it, so could someone who does change this page please?--Mike Worth 05:01, 28 January 2009 (CST)

When was this feature added? I'm having issues with my block with seemingly multiple Moodle 1.9 installs not being able to display the settings page. Could we have any documentation on this?--Jonathan Doane 13:26, 30 August 2010 (EST)
See talk for an example. --Frank Ralf 19:40, 16 November 2010 (UTC)

block_simplehtml

  • I had to title my first file block_simplehtml.php to get it to install. Is this always true?
  • For answer see talk. --Frank Ralf 08:54, 1 March 2009 (CST)

get_config() ??

No mention of get_config() anywhere? (The preceding unsigned comment was added by Jeffrey Silverman (talkcontribs) .)

Thanks for the hint, Jeffrey! Will be added to the TODO list. For the time being I added some direct links to http://xref.moodle.org on Guidelines_for_contributed_code#Does_the_code_use_the_config_plugins_table.3F (Please sign your comments.) --Frank Ralf 10:03, 29 March 2009 (UTC)

How to set Strings (Language)

Maybe nice to have: A link or description how to set Language-Strings for the block_simplehtml. (The preceding unsigned comment was added by Jan Roth (talkcontribs) .)

Hi Jan, please have a look at Moodle Programming > Unit 7 - Part A - Block Basics which is sort of a follow-up to this docs. And you will find additional information at Places to search for lang strings. And please sign your comments - second button from the right ;-) --Frank Ralf 14:43, 19 January 2010 (UTC)