Hello,

I woulld like to attach an zone territory field to an entity (an term of taxomomy), but I do not see de "zone territory" element as I see the "Address" element inside the list when I want add the field ?
I juste want to link some term to a zone territory.
I do not see how to do this
Thanks for some help.
list type of field

CommentFileSizeAuthor
#2 list type of field.png25.4 KBsteveoriol

Comments

steveoriol created an issue. See original summary.

steveoriol’s picture

Issue summary: View changes
StatusFileSize
new25.4 KB
bojanz’s picture

Title: Zone territory form element » Provide a zone field type
Category: Support request » Feature request

It's a form element (to be used in custom forms), not a field type.

Would be happy to have one, though.

steveoriol’s picture

Thank you, for your answer bojanz.
Because, I do not have time on this projet and I am not a very good developper and I do not understand for the moment all new D8 things ....
I have taken the module "Country" to make my zones of country.
Thanks again.

bojanz’s picture

Assigned: Unassigned » bojanz

Hello, friday.

  • bojanz committed 3406093 on 8.x-1.x
    Issue #2872570 by bojanz: Provide a zone field type
    
bojanz’s picture

Status: Active » Fixed

Done. The zone_territory form element was renamed to address_zone_territory for consistency.

You can create a Zone field on any entity then use it like this: $node->field_zone->value->match($address).

  • bojanz committed 0db5d0d on 8.x-1.x
    Issue #2872570 followup: Fix the default value handling.
    
steveoriol’s picture

Thank you bojanz.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.