Project

General

Profile

Feature #2618

Allow blocks to be displayed on the front page when NOT logged in

Added by Laurent Opprecht almost 10 years ago. Updated over 9 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Stefaan Vanbillemont
Target version:
Start date:
24/01/2011
Due date:
% Done:

100%

Estimated time:
Complexity:
Easy

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

History

#1

Updated by Laurent Opprecht almost 10 years ago

  • Assignee set to Laurent Opprecht
#2

Updated by Stefaan Vanbillemont over 9 years ago

  • Target version set to 7
#3

Updated by Laurent Opprecht over 9 years ago

  • Status changed from New to Needs testing
  • % Done changed from 0 to 100
#4

Updated by Stefaan Vanbillemont over 9 years ago

  • Status changed from Needs testing to Needs more info

How can I test this? I can't find any of these settings.

#5

Updated by Laurent Opprecht over 9 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.

#6

Updated by Laurent Opprecht over 9 years ago

  • Status changed from Needs more info to Needs testing
  • Assignee changed from Laurent Opprecht to Stefaan Vanbillemont
#7

Updated by Stefaan Vanbillemont over 9 years ago

  • Status changed from Needs testing to Bug resolved
#8

Updated by Stefaan Vanbillemont over 9 years ago

  • Project changed from Chamilo LCMS Connect to Home
  • Category deleted (17)
#9

Updated by Stefaan Vanbillemont over 9 years ago

  • Target version changed from 7 to 2.1.0

Also available in: Atom PDF