The Blocks Advanced tutorial

Re: The Blocks Advanced tutorial

von Davo Smith -
Anzahl Antworten: 1
Nutzerbild von Core developers Nutzerbild von Particularly helpful Moodlers Nutzerbild von Peer reviewers Nutzerbild von Plugin developers

Have you added the language string to blocks/MYBLOCKNAME/lang/en/block_MYBLOCKNAME.php ?

(i.e. $string['pagetitle'] = 'The name of this page'; )

After that, have you purged all caches (site admin > developer > purge all caches)? (Or you can bump the version number and run an upgrade, but purging caches is usually more convenient during development).

Als Antwort auf Davo Smith

Re: The Blocks Advanced tutorial

von Elie Reformed -
" Don't forget to include definitions for the new strings that you are creating, into block_simplehtml.php " is this what u'r saying to me, cause this sentence was in that tutorial and I didn't know how to do it...


In your example, what do you mean by 'The name of this page'?

tbh, I didn't understand what role has the lang folder. traurig


edit: well well... after reading the String API doc I can see now what's going on... problem fixed. ty lächelnd