Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
wemmies CreditAttribution: wemmies commentedI 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)
Comment #2
m.stentaCleaning up old issues... assuming this is resolved, but reopen if you still need assistance with this specific request.