Is it possible to have a different layout when an argument is present? For example, I've got a taxonomy term argument on a panel page. When the panel is visited without the argument (because it's optional (! used instead of %)), can the layout be one-column, while when an argument is present, it'd be a two-column?
It seems like this is possible after reading the project page's description.
Comments
Comment #1
merlinofchaos commentedThis is possible though it's not as easy as we would like because there isn't a selector for simply "context exists". Perhaps this could be added via a patch.
Instead, probably the easiest way to do this would be to make sure you have two task handlers for the page (so you cannot use 'panel page', you must use 'custom page'). For the first task handler in the list (the one highest) add a selection rule that checks the context. You can check it for anything, just make sure it will always pass if the context exists. FOr example, add the node: type test and select all types. That will pass for any node but still will NOT pass without a node.
Then, your second task handler will handle the case with no node.