Hey guys, I'm trying to expose some location filters in Views in conjunction with Profile 2 and there doesn't seem to be support for it. Do you know of any ways to do this? Are there any plans for this functionality to be added to Profile 2?

CommentFileSizeAuthor
#6 Map search - Marine Jobs.png153.59 KBAdam S

Comments

kevinquillen’s picture

I have added the Location field to a simple Profile2 type. While the fields display on the form, the data is not saved (no location in the database). When the page reloads after saving, the fields are clear.

kevinquillen’s picture

Is there no resolve to this? The data just does not save.

kevinquillen’s picture

Category: support » bug
Terko’s picture

I have the same problem, subscribe.

kevinquillen’s picture

There is actually a patch for this from the Location threads. Trying to find the link..

Adam S’s picture

StatusFileSize
new153.59 KB

edit: I take back everything I said about having luck with OpenLayers and Profile2. For some reason, OpenLayers and/or Views is using Reminents of Node API in Drupal 7 which doesn't help working with the Entity API causing quite a few errors. I'm sure that this problem is most likely systemic and will not be able to be solved until there is some agreement about Drupal's API's which will not happen if at all until Drupal 8. *sigh*

westbywest’s picture

Here is the comment on the Location CCK module with the patch:
http://drupal.org/node/1064666#comment-4297472

For D7.7, profile2 7.x-1.0, and location 7.x-3.x-dev, I can confirm that this does allow saving of 1 location field in a profile2 profile (didn't yet try multiple locations).

However, the location is not displayed when viewing the user profile. You could write a custom user.tpl in your theme to work-around, but the patch isn't complete yet.

fago’s picture

Status: Active » Postponed

ok, so the issue is #1064666: Location CCK not saving for entities other than nodes

let's leave this open (@postponed) until it's fixed in location, so others can find it.

raulmuroc’s picture

Status: Postponed » Closed (duplicate)

One year. Nothing else. It can be closed.