As an early adopter, I tried to disable all blocks and to make my page completly with panels everywhere.
This works quite well. Only the URL filtering is quite difficult.
Why not using the same rules / posibilities as in blocks? I think the URL filter of blocks is well known and easy to handle.
And not everyone is able to write complex regex expressions.
Comments
Comment #1
ayalon commentedI think I found the function in the core:
path.inc:
drupal_match_path()
Comment #2
ayalon commentedBecause I wanted to completly go away from the drupal block system, I searched for an easy way to handle the panel visibility based on the path as I am used in the block settings.
inspired by merlinofchaos string access filter, I wrote a new access plugin for ctools, that is able to filter by path in the same way as the block system do.
Attached you will find a screenshot and the path.inc which has to be copied to ctools/plugins/access.
Comment #3
catchJust saw this as I was about to post a similar patch for a path visibility access plugin, doh. Here it is anyway. Moving to correct project.
Comment #4
ayalon commented:-) Almost identical code..
The master may choose and hopefully add one of this to the next release...
Comment #5
catchJust a note I looked at the string match access plugin and context in panels_everywhere but wanted something that has the same basic UI as block module (for administrators who are used to that), and also for any arbitrary panel. There didn't see an obvious way to bend the string context / access to do that, hence the new plugin.
Comment #6
merlinofchaos commentedHmm. I am unsure about this. I'd kind of like this to work on string contexts, rather than forcing to $_GET['q']. Of course, that means we need to make the URL context generally available, not just on panels everywhere, I suppose.
Comment #7
catchI looked at the string contexts, but couldn't see a way to get that to work with both system paths and path aliases.
Comment #8
merlinofchaos commentedUpgraded somewhat and committed. Thanks!