New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fieldtype addon using meta.yaml for field identification #1587

jcohlmeyer opened this Issue Sep 6, 2017 · 0 comments


None yet
2 participants

jcohlmeyer commented Sep 6, 2017

Expected behaviour

The name property in the addons meta.yaml file can be set to whatever you would like and has no impact on the functionality of the fieldtype.

Actual behaviour

If I use a different capitalization scheme in the name property of an addon the fieldtype identification is wrong when trying to add the custom fieldtype to a fieldset in the CP.

Steps to reproduce

  1. Make an addon and give it a name containing an abbreviation such as Link OG Data
  2. Set your addons namespace to not capitalize the abbreviation namespace Statamic\Addons\LinkOgData;
  3. Try to add the field to a fieldset using the CP

Server Details

Operating System: Ubuntu

Web Server: Apache 2.4

PHP Version: 7.1

Statamic Version: 2.6.8

Updated from an older Statamic or fresh install: Fresh

List of installed addons: Link OG Data


If any logs (browser, server, or Statamic) are appropriate...

Fieldtype [link_o_g_data] does not exist./home/ubuntu/workspace/statamic/core/CP/FieldtypeFactory.php#45

Temporary fix (involved changing the value of name in the meta.yaml file)

jcohlmeyer referenced this issue in jrc9designstudio/statamic-link-og-data Sep 6, 2017

@jasonvarga jasonvarga closed this Sep 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment