Closed (fixed)
Project:
Panels
Version:
6.x-3.0-rc1
Component:
Panel pages
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2009 at 02:03 UTC
Updated:
2 Oct 2009 at 20:40 UTC
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
Comment #1
merlinofchaos commentedRight 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.
Comment #2
colin_young commentedThanks. 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.
Comment #3
rvallejo commentedIs 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.
Comment #4
merlinofchaos commentedIf 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.