I am working on a set of pattern definitions for a new site, and am having trouble with a pattern definition. When I run it, I get the following error:

  • Add new field: you need to select a field type.
  • Above error(s) occured while executing action #4 (CCK: Add Field or Group) in My Model pattern. Error location(s) are: _add_new_field->type
    • I am able to run the bundled sample patterns without issue, and I can't see anything about my patterns which would cause problems. Any advice?

CommentFileSizeAuthor
sample.yaml_.txt2.15 KBhaxney

Comments

vaish’s picture

Phone module generates many field types in the format _phone. You need to specify one of those in the pattern, instead just saying "phone" as you did. See example below:

  - tag: field
    type: building
    name: toll_free_phone
    label: Toll Free Phone
    option: ca_phone
    widget: phone_textfield

Patterns form helper can help you in determining correct values that you need to use in your patterns. You can enable it at admin/build/patterns/settings

vaish’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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