Project

General

Profile

Actions

Feature #2618

closed

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

Added by Laurent Opprecht about 12 years ago. Updated almost 12 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

Actions #1

Updated by Laurent Opprecht about 12 years ago

  • Assignee set to Laurent Opprecht
Actions #2

Updated by Stefaan Vanbillemont about 12 years ago

  • Target version set to 7
Actions #3

Updated by Laurent Opprecht about 12 years ago

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

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.

Actions #5

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.

Actions #6

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
Actions #7

Updated by Stefaan Vanbillemont about 12 years ago

  • Status changed from Needs testing to Bug resolved
Actions #8

Updated by Stefaan Vanbillemont almost 12 years ago

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

Updated by Stefaan Vanbillemont almost 12 years ago

  • Target version changed from 7 to 2.1.0
Actions

Also available in: Atom PDF