Hi,
my panel-page is getting a node-id as an optional argument via "foo/!bar" and this argument is passed to a content-pane. The content-pane will show all results of a given content type if no argument is given. But the view is not displayed if the argument is not given.
A possible solution for me would be to display a different variant if no argument is given. But then i would display the same view in both variants just with/without the argument.
Is there another solution to do this?

thanks,

Comments

fakingfantastic’s picture

I just ran across the need to have this same question answered. In my case I am creating a blog. I have made a view content pane for displaying all of my blog posts. In the sidebar, I made an archive block, with month/year links like "March 2013." I set up my content pane to take an input argument from the panel configuration, and then I pass in the value from the URL with page manager.

That's all working fine when I'm viewing an archive, but the default blog page (with no archive date) shows no output for the pane, presumably because its requiring the argument.

How do I go about making the argument optional? I don't really want to make another variant, because then I'll be duplicating a whole layout, and that just seems silly.

Thanks in advanced.

fakingfantastic’s picture

(Removing double post... Silly tablet)

fago’s picture