I a single layout I'd like to access from 2 different urls, with all the content except one being the same. The one changing content is a different view. Specifically:

attractions/city/[name] - uses a view taking a city name argument
attraction/state/[name] - uses a view taking a state name argument

Other than that one view, all other content in the panels is the same. Can I achieve that using arguments or contexts to the panel and then variants (I still haven't really been able to wrap my head around contexts)? Obviously I'm able to set up two completely separate panels to get what I want, but I'd rather just have a single layout to edit.

Thanks.

Colin

Comments

merlinofchaos’s picture

Status: Active » Fixed

Right now, you're going to need two separate panels, unfortunately. It seems like something like this might be possible with custom variants but it'd be a fair bit of work, particularly architecturally.

colin_young’s picture

Thanks. I suspect I just might have an edge case here anyway.

I've been thinking that maybe I can do some tweaking somewhere else (like in my view) to figure out what was passed. At least I know not to spend any time trying to figure out how to get Panels to do it.

rvallejo’s picture

Is the solution here just two completely separate panel pages, or just variants? Any suggestions for having more than one url for a panel? I have a separate issue (using variants and language selection rules) but I'm trying to figure out the best way to access variants of a panel page with different (in my case, language specific) urls.

merlinofchaos’s picture

If you want to vary the URL by just one portion, which would be typical of language specific URLs, you could use an argument as a placeholder for the language.

Status: Fixed » Closed (fixed)

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