Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

EXTERNAL - data.json decode

Started by Muut Archive 10 years ago · 3 replies · 360 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 1360 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2958 9 years ago
Archive · by Muut Archive, 9 years ago
3 1122 9 years ago