Moodle - How to unmount the blocks

3

How to use the blocks to get layout elements?


Example:

<?php echo $OUTPUT->blocks('course_summary', 'cssCourse'); ?>

I want to use the block with the course_summary id, only it does not appear on the first page ... Home .................................................. (I.e. Home Or something else that I found the most I could not develop further on is this:

<?php echo $OUTPUT->login_info(); ?>

It prints the login information block, where you can log and edit profile, etc ... But I can not get over the other blocks, nor dismount the login info to separate for example the user avatar of his name ... etc ...

I'm still waiting for help and examples ...

    
asked by anonymous 26.03.2016 / 00:27

1 answer

2

I was able to unmount the login area, so printing the default block looks like this:

<?php echo $OUTPUT->login_info(); ?>

To disassemble it into several blocks there are a few ways, for example:

<?php echo echo $USER->firstname; ?>

So you unmount the login_info block and print only the first user name that appears in the login_info block ... To dismantle the rest, just follow the same path ...

    
31.03.2016 / 00:47