Can you suggest a way to extract city and state from a node where I'm using addressfield, and place it in a block?

Comments

johnhorning’s picture

Title: extract city and state from a node and place in block » Extract city and state from a node and place in block
johnhorning’s picture

Figured it out. Create a Views Block. Add contextual filter Content NID (node ID) and under "When the filter value is NOT available", check "Provide default value". Then select "Content ID from URL". Select fields to display, in my case Address Locality and Address Administrative Area.

johnhorning’s picture

Status: Active » Closed (works as designed)