Need help. Anomaly fields not displaying as expected
richardsoper - 2 months ago
Im attempting to create a custom add-on to manage products for an e-commerce site I am building. I created a new stream and set up the fields as shown here: https://pastebin.com/rDJxutTt However when I load into the add-on in the admin panel it only shows the name and slug fields with the identifiers "snipcart.module.products::field.name.name", and "snipcart.module.products::field.slug.name". Im pretty new to PyroCMS so if you've got any suggestions I would greatly appreciate it.
finnito - 2 months ago
What is being displayed is the language file key that it is trying to display. In your addon at
resources/lang/en/field.php you can set the name of that language key.
<?php return [ "name.name" => "The Column Name", ];