Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

EXTERNAL - data.json decode

Started by Muut Archive 10 years ago · 3 replies · 448 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 2289 9 years ago
Archive · by Muut Archive, 9 years ago
2 1503 9 years ago
Archive · by Muut Archive, 9 years ago
2 4754 9 years ago
Archive · by Muut Archive, 9 years ago
1 3570 9 years ago
Archive · by Muut Archive, 9 years ago
3 1627 9 years ago