Closed (fixed)
Project:
Panels
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
14 Feb 2007 at 10:41 UTC
Updated:
28 Jun 2007 at 16:25 UTC
Jump to comment: Most recent, Most recent file
Panels overides any php code you place for block visibility, it doesn't matter what php code you place in a blocks visibility section it is ignored by panels. This means its impossible to use panels for any post login sections of a site at the moment.
I have tried a range of code, but have been attempting to set all blocks to not be visible to unauthenticated users and show the login block instead. Any ideas how this could be achieved?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | block.inc_.patch | 1.38 KB | slantview |
Comments
Comment #1
slantview commentedHere is a patch with the fix requested.
/v
Comment #2
johntymatts commentedthanks will test it out
Comment #3
merlinofchaos commentedYou get 3 or 4 thank-yous for this patch! Committed and will go out in 1.1 today.
Comment #4
(not verified) commentedComment #5
Anonymous (not verified) commentedthis needs to get into panels 2 but I think we need to add a checkbox or a textarea to override it or something to allow for the php visibility code. Reason for it, in my opinion panels gives you the ability to control blocks on their own without how they are controlled through admin/build/block and thus if the block is enabled in admin/build/block and has visibility code, that code is for that region.. what if the user wants different visibility code for that block when its in a different region (panels) ?
Just like override title by visibility code.
Comment #6
Anonymous (not verified) commentedthis needs to get into panels 2 but I think we need to add a checkbox or a textarea to override it or something to allow for the php visibility code. Reason for it, in my opinion panels gives you the ability to control blocks on their own without how they are controlled through admin/build/block and thus if the block is enabled in admin/build/block and has visibility code, that code is for that region.. what if the user wants different visibility code for that block when its in a different region (panels) ?
Just like override title but visibility code.
Comment #7
eaton commentedIndeed -- I have a client who was taken off guard by this change. They're using PHP visibility code to control the block on the rest of the site, but want to 'force' it to appear in the panel.
Comment #8
merlinofchaos commentedI need to mark other issues as a duplicate of this, and I'm not carrying the basic block visibility stuff forward into Panels 2 because of the reasons outlined here, anyhow. That said, block visibility is in 1.2
Comment #9
merlinofchaos commented