Conditional block

Conditional block

by Ger Tielemans -
Number of replies: 3
How can I show the content of a block ONLY when a person is loggedin.
(The reverse from the LOGIN block)
Average of ratings: -
In reply to Ger Tielemans

Re: Conditional block

by Ger Tielemans -

Found it:  if (isloggedin()) { $this->content->text =' YOUR CONTENT ';}

In reply to Ger Tielemans

Re: Conditional block

by Ger Tielemans -
Mmmmm, and which param can I check to know if the visitor on the frontpage is a visitor (or a guest, coming back from a coursepage) so that I can decide to show them information in a block and not to the others (like the mission of the institute). For the other users I need the room to show them other (internal) blocks.