I am trying to build a map (IPVGM) of locations which will be used as a block appended to all entities of type Person. Locations are stored in a taxonomy, with an extra field to hold the coordinates. There are multiple fields in a Person that reference the Locations taxonomy (Field:birthplace and Field:other_locs), and I am trying to plot all of them on the same map. IPVGM can handle multiple locations per row, but the view I've been able to construct so far duplicates the birthplace in every row. This means that IPVGM constructs a map with (in this case) 4 birthplaces.

enter image description here

I'd like to use Views PHP to remove values for birthplace and birthplace coordinates in every row but the first one. I've had some luck trying to do this in the Output Code of Views PHP, but I think it needs to be handled in the Value Code area in order for IPVGM to pick up on the field values (or hopefully lack thereof). Any help? I looked at Views Distinct, and using a Global:PHP filter, but both of these would remove the entire row, when I only want to remove the birthplace & birthplace coordinates components.

1 Answer 1


Try to use Views Conditional.

Views Conditional is a simple module that allows you to define conditionals with fields in views.

Conditions include:

  1. Equal To
  2. Not Equal To
  3. Greater Than
  4. Less Than
  5. Empty
  6. Not Empty

Views conditional allows you to output text based on the result of the condition.

  • Thanks - I've had success playing with this in terms of getting the view right by adding a view result counter field and then checking against that, but IPGV&M isn't picking up the coordinates generated by Views Conditional. I'm going to open an issue with the IPGV&M module, and I'm going to leave this post open for the moment in hopes of finding a different solution.
    – cdc43339
    Jul 29, 2016 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.