-
What can it do?
-
Free and PRO Plugin
-
Ask your Question
-
Free Plugin: Installation and basic settings
-
Free Plugin: Start with easy Examples
-
Free Plugin: settings in detail
-
PRO Plugin: Installation and basic settings
-
PRO Plugin: Basic JCI start
-
PRO Plugin: settings in detail
-
PRO Plugin: twig-Template
-
PRO Plugin: Examples
-
PRO Plugin: create Custom Post Types
-
PRO Plugin: Other Plugins
-
PRO Plugin: application building
-
PRO Plugin: Data-Formats
-
PRO: Advanced Twig
Print
PRO: twig-tricks
_content, _parent
The “root node” of a JSON loaded into twig can be addressed with two keywords:
_parent
_context
note the difference of _context and _parent loops
twig-Loop with key and value
JSON with lists (aka arrays) of key:value pairs can be addressed by
{% for key, val in oprs) %}...{% endfor %}
twig: Handle dash in JSON
If JSON contains some dashes (“-“) in the keys, the usual way of twig does not work.
Here you will find how to solve this.
Was this article helpful?
0 out Of 5 Stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
5
On this page: