Skip to content
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

Update Readme to reflect case rules #112

Open
bondjimbond opened this issue Apr 2, 2020 · 1 comment
Open

Update Readme to reflect case rules #112

bondjimbond opened this issue Apr 2, 2020 · 1 comment

Comments

@bondjimbond
Copy link

Somewhere, the column headings from the CSV are automatically transformed to lowercase. If you don't know this, and you write a Twig template with uppercase in your data, your template will not recognize the data because it expects, e.g. First_Name, while that value has been transformed into first_name.

README should make mention of this quirk and state that CSV column headings must all be lowercase, or that your Twig templates must be written with the understanding that column headings are transformed to lowercase.

@DiegoPino
Copy link
Contributor

@bondjimbond true. That is something i want to document for Archipelago too. Twig properties (as in PHP variables) are always case insensitive and because of the limitations of how PHP variables can be normalized internally (as good as i could), so we thought it was better to normalize also to lower case. Will make sure to add an entry to the doc. Thanks!

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

No branches or pull requests

2 participants