Panels integration

frankcarey - June 10, 2009 - 17:23
Project:Location
Version:6.x-3.1-rc1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

From what i see, i can't have a location context in panels. We need this so we can show a list of county specific views. To do this the various panel hook should be called to setup the relationships and required contexts.

I found this in the panels 2 documentation: [#336114]

Any thoughts on this ? Is there a better simpler way that I missing to get country as an argument?

#1

YesCT - June 17, 2009 - 08:38

I think the [#nnnnnn] only works for issues,
here is that link to the documentation: http://drupal.org/node/336114

#2

frankcarey - June 17, 2009 - 14:22

yes, thanks. any thoughts on this? Does this make sense to do?

#3

SocialNicheGuru - June 18, 2009 - 00:28

Can location be added to panels 3 context ?

Should I open up another issue for that?

Chris

#4

frankcarey - June 18, 2009 - 18:27

I'm actually working on the panels 2 integration right now... if the api is the same / similar, then a panels 3 version should be the same. So far I'm just doing country, but it could do province fairly easily I think.... then you could have panel relationships city->province->country type thing. I'll report back to this issue on progress.

#5

frankcarey - June 22, 2009 - 20:26

OK, I've got the module basically done. It only works for Countries right now, but I will allow you to use either a default display for all the countries, or to make custom displays for countries you select. you can use either country code or country name in your argument ( mypanel/us or mypanel/United States ).

So the next question is where the code should live. Location module project vs. its own project. Thoughts?

Cheers
Frank

 
 

Drupal is a registered trademark of Dries Buytaert.