Note:

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

Talk:YUI/Modules: Difference between revisions

From MoodleDocs
(blocks not block)
 
No edit summary
 
Line 6: Line 6:
         'M.blocks_fruit.fruitbowl.init');
         'M.blocks_fruit.fruitbowl.init');
(blocks instead of block)
(blocks instead of block)
==
No - the frankenstyle format for blocks is block_fruit, whilst the directory is 'blocks' - probably for historical reasons.
--[[User:Andrew Nicols|Andrew Nicols]] ([[User talk:Andrew Nicols|talk]]) 08:27, 2 September 2014 (WST)

Latest revision as of 00:27, 2 September 2014

I believe in the instruction to use $PAGE->requires->yui_module('moodle-block_fruit-fruitbowl',

       'M.block_fruit.fruitbowl.init');

they actually mean $PAGE->requires->yui_module('moodle-blocks_fruit-fruitbowl',

       'M.blocks_fruit.fruitbowl.init');

(blocks instead of block)

== No - the frankenstyle format for blocks is block_fruit, whilst the directory is 'blocks' - probably for historical reasons. --Andrew Nicols (talk) 08:27, 2 September 2014 (WST)