Views and CTools/Panels all have very powerful options for adjusting their behaviour based on path arguments or other contextual things.

One thing I miss with the new content pane system is the possibility to make Views arguments from CTools/Panels context optional.

Currently they seem to be created as ctools_context_required, since the content pane doesn't show up in Panels if you do not have the required context.

CommentFileSizeAuthor
#1 views_optional_contexts.patch2.86 KBsdboyer

Comments

sdboyer’s picture

Assigned: Unassigned » merlinofchaos
Status: Active » Needs review
StatusFileSize
new2.86 KB

Patch attached. Turned out to be even simpler than I thought, but I'm still pondering the possible implications. Atm it feels pretty clean, and so long as the view handles empty values for the corresponding argument gracefully, all seems hunky-dory. But I'm feeling wary, so I'm gonna wait until Earl has a chance to look before I commit it.

merlinofchaos’s picture

Status: Needs review » Fixed

I think that's ok, Sam. Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.