Hi,

I am using Location module (http://drupal.org/project/location) and Panels. I have a node with node location turned and am trying to link the location content from Panels. Does anyone know if this is possible with the current version? if so how do you link them two? Right now the location information is probably not showing at all on my panels add content box.

Thanks.

BB

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

am trying to link the location content from Panels.

I am not sure what you mean by this.

blueblade’s picture

Hi merlinofchaos,

Thanks for replying.

I am using location module to allow add their location information to one of the nodes and I want to show the location information on panels. However, the location is not showing under "node" box where you get of options including "Node author", "Node body", "Node comments", "Node content" etc but none of this give me that piece of location information input by the users.

Perhaps it is easier to understand if you have the module installed. Once intalled, the form show under "edit" page under "content type" instead of "manage fields" page if you're also using cck.

location module: http://drupal.org/project/location
related module: http://drupal.org/project/nodelocation_relationship

apmsooner’s picture

I use location within nodes in panels with no problems whatsoever. Sounds like you just need to specify the visibility settings in the location section of the content type. I have a node add form in panels with location fields and I also have views in panel regions using fields from the location section as well.

blueblade’s picture

Hi apmsooner,

Thanks, but I am not sure if you are using location CCK fields or node location. There are two ways of using location, one is to add as fields and the other is activate it in a content type (node location) I have no problem pulling the CCK location field information but have not been able to pull the node location information in panels.

Please let me know the details. Thanks again.

BB

apmsooner’s picture

Okay yes to confirm i am also activating it via content type so different issue as you described originally. Out of curiosity, what is the advantage to pulling it through location fields compared to just setting it in the node?

blueblade’s picture

I need the content searchable by author locations. Node location allows me to do that. I tried too CCK Location fields but didnt work for me that way.

apmsooner’s picture

So enabling user locations in the location module and capturing location data from your users upon registration doesn't work for you?

blueblade’s picture

The node locations work, they are showing when the pages are called directly. I just need to find out how to call the information tho through panels.

apmsooner’s picture

don't know if this helps you or not, but there is a system panel called node_view that you can enable and specify the type of node content types viewable which in essence would allow you to pull those same pages into your panel. You could drop views in that panel as well that would offer a filtered search mechanism by user location I would bet. I've realized there are times where you have to create a few different panels with multiple variants to accomplish some of the things I needed to do. As example, I wanted the site contact form to also display in panels so I enabled the contact_site panel and essentially duplicated the layout of my home page panel to ensure it all opens in the same layout. The value in doing this for me is also the ability to add css to the regions and thus modify fields without affecting id's and classes in drupal core. Just thought i'd offer my $.02 for additional ideas of maybe accomplishing what you're after. If not, sorry... I wish I could help more :)

blueblade’s picture

Hi apmsooner,

Any suggestion is appreciated =) and please do not apologize for trying to help.

I am using node_view but the problem is I cant find where to pull that information. I could have try them all and find out but my site is super slow, when I originally post that question, I was hoping to hear from someone who has done the exact same thing who can help me save some time (sorry for being so lazy...) I will eventually have to sit down for a few hours try them all out one by one. Perhaps I should solve my site performance issue first...

BB

bstrange’s picture

I am working on this as well. Using the node location module as opposed to CCK Location field allows users to easily input locations for that node (such as an 'event' node or a 'business location' node that allows the node location map to be used within the page. Unlike using CCK and GMap, utilizing it this way allows each node's map to center on that node's location. Location is a page element, much like input format or meta tags. It would be nice to be able to display it 'out of the box' as this is the most commonly used implementation due to the highly publicised screencast by drupal therapy http://www.drupaltherapy.com/gmap

I am going to try cobbling the location information into a view and then posting the view into the panel and see how that works. I'll keep you updated.

bstrange’s picture

Yes, create a new view using only the location field under the Location group (Field:Location:Address The entire address block for the location.) Then put the view name in your panel. This works with teasers as well which are also not able to be placed in panels as a stand alone element 'out of the box'.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Fixed

Suggestions made for solution, no updates for more than 30 days.

Status: Fixed » Closed (fixed)

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

raulmuroc’s picture

Assigned: Unassigned » raulmuroc
Status: Closed (fixed) » Active

It was solved some way?

raulmuroc’s picture

Version: 6.x-3.2 » 7.x-3.x-dev
Letharion’s picture

Version: 7.x-3.x-dev » 6.x-3.9
Assigned: raulmuroc » Unassigned
Category: feature » support
Status: Active » Closed (fixed)