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 34: Line 34:
== How to set Strings (Language) ==
== How to set Strings (Language) ==


Maybe nice to have: A link or description how to set Language-Strings for the block_simplehtml.
Maybe nice to have: A link or description how to set Language-Strings for the block_simplehtml.  
{{Unsigned|Jan Roth}}
: Hi Jan, please have a look at [http://dev.moodle.org/mod/resource/view.php?id=48  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 ;-) --[[User:Frank Ralf|Frank Ralf]] 14:43, 19 January 2010 (UTC)

Revision as of 14:43, 19 January 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)

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)