Nodes created with CCK that include Location information do not show in Location Table Views.

Nodes created with Story module that include Location information show in Location Table Views.

Using latest version of Location, Views and CCK

Comments

karens’s picture

I have no trouble getting both cck and location info into views. Are you using the location views module?

coupet’s picture

yes, using Location views module

karens’s picture

There were a lot of changes to views in the last few days, so I just made sure I have all the latest updates just in case there were any changes that affected this module. I can still combine cck and location fields in a view with no problem so I can't replicate your issue. I'm trying to think what could be different in your setup than in mine.

I forgot to ask whether you cleared your cache. If so, I guess anything you can tell me about your setup that might help me replicate your situation would help.

karens’s picture

Also, can you double check that the right cck content type is displayed in your filter. I did notice that the content type showing up in my default view is no longer right, so I need to see why that is. That should not affect any view that has the right content type selected.

karens’s picture

I found that there has been a change in the way that cck handles module info. I used to be able to get a list of cck content types using the module_list function, but now they all come back with the type 'content'. That's why my check for location-enabled content types was missing cck types. I just uploaded a fix to cvs that has a work-around to add the cck types to my list. That change only affects the content types that are pre-selected in the default view, but maybe that was your problem.

coupet’s picture

Updated to latest cvs as advised and works now with the nodes created with CCK that include Location Information are shown. good.

other messages when choosing:
Name: All City: All Province: All Country not = Anguilla

    * user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 'ai')' at line 1 query: SELECT count(*) FROM node node LEFT JOIN location location ON node.nid = location.oid WHERE (node.status = '1') AND (node.type IN ('user','story','content-painting')) AND (location.country NOT = 'ai') in /usr/local/apache/htdocs/sitename.com/dpa/includes/database.mysql.inc on line 120.
    * user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 'ai') ORDER BY node.title ASC LIMIT 0, 10' at line 1 query: SELECT node.nid, node.title AS node_title, node.changed AS node_changed, location.name AS location_name, location.street AS location_street, location.additional AS location_additional, location.city AS location_city, location.province AS location_province, location.postal_code AS location_postal_code, location.country AS location_country, location.latitude AS location_latitude, location.longitude AS location_longitude FROM node node LEFT JOIN location location ON node.nid = location.oid WHERE (node.status = '1') AND (node.type IN ('user','story','content-painting')) AND (location.country NOT = 'ai') ORDER BY node.title ASC LIMIT 0, 10 in /usr/local/apache/htdocs/sitename.com/dpa/includes/database.mysql.inc on line 120.

note: there is no information with location country Anguilla.

karens’s picture

Well I have to say that is not an option I tested :-)

I will look into it.

karens’s picture

OK, I think I found the problem. Can you try again with latest cvs?

coupet’s picture

works and no warnings messages.

other observations:

the Page listings number 1 2 Next and Last Button are shown in first page and not on the following pages.

Unable to show all listings for all countries in Country options selection

karens’s picture

The countries list is limited to the countries you enabled in your locations settings. That is by design, but if that seems like a bad design I am open to suggestions.

I can't reproduce the paging problem. Any chance you just need to clear your cache?

coupet’s picture

design is excellent, but the user can choose one country (good) not all countries; I think the (All) option is not listed under Country.

to see the error, need to have more than 10 nodes that meet condition (a)
a.- Name: All City: All Province: All Country: Not Anguilla
b.- results display more than 10 nodes
c.- click one of the options [1 2 3 4 5 next last], it list the next page
d.- there is no page numbering or previous page button
e.- BUT the current Views parameters are CHANGED in the Next page to:
f.- Name: All City: All Province: All Country: United States <--here

The Country selection option is being changed in the next page!

karens’s picture

I still can't reproduce this, I get the option on every page plus all the right paging alternatives. You are using the very latest version of everything, right? Both location_views and views have had cvs changes today. If you have all the latest cvs and you have cleared your cache and are still getting this error, export the view you are using and paste it into a message here. Maybe I can get some clue from that about what is going on.

karens’s picture

Also, please tell me what countries you have enabled in your location settings.

coupet’s picture

As advised, latest version of Views resolved all outstanding issues.

In reference to Country selection, there is not option to do a Worldwide search or All countries?

karens’s picture

Yes, you should see an *all option under countries. Check your exposed filter setup to be sure you have the right options available.

coupet’s picture

for Country, there are 2 options:
1.- , =, not = (this is ok)
2.- Anguilla, Aruba, ..., United States, (this option forces a country selection even if All is selected above)
All and None can be added to option list, similar to Province option

sorry for the misunderstanding.

coupet’s picture

Status: Active » Fixed

Hi Karen,

In exposed filters, for Location: Country, I checked the box for Optional and the All option is now available. As advised, it is a subjective issue.

thanks for a great contrib.

Anonymous’s picture

Status: Fixed » Closed (fixed)