Need help. Anomaly fields not displaying as expected
Created 5 years ago by richardsoperIm 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.
Are you talking about in the table view? If so you need to make sure your table builder is configured to render all the fields.
Are the columns in your table/ listed in the base model?
More details would be great if that isn't it. Also please try to format your arrays so they are more readable
So I solved part of my problem and I get all my fields to show up. But Im still getting some ugly labels showing https://imgur.com/a/4vxRzZ0
The table builder file I have is super simplistic since I just want to display three columns in the admin panel: https://pastebin.com/MiV9ieqr
I don't even know where to begin. Sorry if this is a dumb question.
He @richardsoper!
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.
E.g.
<?php
return [
"name.name" => "The Column Name",
];
@ryanthompson Hah! I assumed that I had read it in your source code somewhere!
He @richardsoper!
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.E.g.