Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

EXTERNAL - data.json decode

Started by Muut Archive 10 years ago · 3 replies · 476 views
10 years ago

How can I implement an site wide read only external JSON file by key. In other words I will have several pages populated from the json file based on the key: (Id: 1) all information associated on that page. (Id: 2) that information on the next page. Etc.

I saw the json decode filter in grav however I don't know how to implement it.

Any help would be greatly appreciated.

10 years ago

A documentation update is pending approval. You can see the section on working with external files here.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2590 9 years ago
Archive · by Muut Archive, 9 years ago
2 1705 9 years ago
Archive · by Muut Archive, 9 years ago
2 4997 9 years ago
Archive · by Muut Archive, 9 years ago
1 3827 9 years ago
Archive · by Muut Archive, 9 years ago
3 1810 9 years ago