I have a problem with submissions. I have an idea, and I give him the term taxonomy by name. Then I have to do with the related node. For my output fields, I return the associated name and the associated Body. However, I have duplicates in my results. I became different from yes, but I believe that this works on return nodes, not node. Any ideas how I can remove duplicates?
Update
Below is the query when I get only the header
SELECT DISTINCT(node.nid) AS nid, node_node_data_field_wine_company.title AS node_node_data_field_wine_company_title, node_node_data_field_wine_company.nid AS node_node_data_field_wine_company_nid FROM node node LEFT JOIN content_type_wine node_data_field_wine_company ON node.vid = node_data_field_wine_company.vid INNER JOIN node node_node_data_field_wine_company ON node_data_field_wine_company.field_wine_company_nid = node_node_data_field_wine_company.nid LEFT JOIN term_node term_node ON node.vid = term_node.vid INNER JOIN term_data term_data ON term_node.tid = term_data.tid WHERE term_data.name = 'test' GROUP BY nid
It looks like I should group by node_node_data_field_wine_company_nid or select different values from it. Any ideas?
Update
This may not be possible if you are using Normal vies. Below is my setup.
I have a taxonomy called "Region." The scope applies to a custom content type called Wine. The Wine content type has a node reference field for the node company type. A company is a common type of node.
I have a list of all my regions. By clicking on an area, I will pass it as an argument to the presentation (name of terms). From this region I want to return all the companies in this region.
To get this, I need to get all the Wine items that have this region. With all the wines with the region, I need to get a unique node link. Then I will return it.
In one direction, this will be the provision of each company in the region (s) to compile a list. However, I would prefer it to be designed automatically from the wine type.
Any ideas?
Linda source share