Feature #2618
closedAllow blocks to be displayed on the front page when NOT logged in
100%
Description
Currently only "login" and "portal_home" can be displayed on the front page when user is not logged in.
Additional blocks would be useful as well. For example a list of links, resources, static html, etc.
Tentative refactoring:
- add a display_anonymous() function to Block
- returns by default the value of a configuration field: display_anonymous
- changes the default DefaultHomeRenderer to make use of this function instead of hardcoding. If true displays the block, if false do not display the block.
Extract from DefaultHomeRenderer:
line 138
if (! is_null($this->get_user())||( $block->get_component() 'login') || ( $block->get_component() 'portal_home'))
in chamilo\home\php\lib\home_renderer\renderer\default.class.php
Updated by Laurent Opprecht about 12 years ago
- Status changed from New to Needs testing
- % Done changed from 0 to 100
Updated by Stefaan Vanbillemont about 12 years ago
- Status changed from Needs testing to Needs more info
How can I test this? I can't find any of these settings.
Updated by Laurent Opprecht about 12 years ago
go to admin->hopepage
add blocks to the default home page
disconnect
go to homepage
new blocks are displayed - that is if they allow to be displayed anonymoulsy.
Note: I left the default behaviour of "do not display on front page" and enabled anonymous login only for blocks I wanted to be shown. Will left other owners decide if they want to turn on this feature.
Updated by Laurent Opprecht about 12 years ago
- Status changed from Needs more info to Needs testing
- Assignee changed from Laurent Opprecht to Stefaan Vanbillemont
Updated by Stefaan Vanbillemont about 12 years ago
- Status changed from Needs testing to Bug resolved
Updated by Stefaan Vanbillemont almost 12 years ago
- Project changed from Chamilo LCMS Connect to Home
- Category deleted (
17)
Updated by Stefaan Vanbillemont almost 12 years ago
- Target version changed from 7 to 2.1.0