Display when logged in.

Permalink Browser Info Environment
Hi Is there a way to display the block when i'm logged in, i can understand that it would cause issues if it displays when in edit mode, but how about if i'm logged in, it is the only block i actually have to log out of C5 to see what the edits i have made look like and it's getting a little frustrating, logging in and out all the time? Thanks

Type: Discussion
Status: New
BHWW
View Replies: View Best Answer
timbo5 replied on at Permalink Best Answer Reply
timbo5
In blocks/view.php, change
$c = Page::getCurrentPage();
$cp = new Permissions($c);
if( $cp->canWrite() || $cp->canAdmin() )  { ?>

to
global $c;
if ($c->isEditMode()) { ?>
BHWW replied on at Permalink Reply
BHWW
Thanks TIm, but that post was nearly 3 years ago, lol

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.