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 · 358 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 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago