I want to display the map on the node page, but only show the location of that node and all other nodes created by that same user. How would I do this?

Thanks in advance.

Comments

wemmies’s picture

I think it is best to create 2 layers for this. One for the current node to display (in one color) and one for all other nodes by the same user (different color)

I'm going to skip some settings, but if you can't figure it out I will try to elaborate when i have more time

Layer 1) set views contextual filter to:
Content: Nid
>> Provide default value
>> Type: Content ID from URL

Layer 2) set views contextual filter to:
Content: Author ID
>> Provide default value
>> Type: User ID from URL
>> select "also look ... the node author"

Content: Nid
>> Provide default value
>> Type: Content ID from URL
>>> More
>>> Exclude
(this doe not display the current node, so the first layer will be able to display this node. If you dont need dual colors, just only use the author ID contextual filter and ignore all else)

m.stenta’s picture

Issue summary: View changes
Priority: Critical » Normal
Status: Active » Closed (fixed)

Cleaning up old issues... assuming this is resolved, but reopen if you still need assistance with this specific request.