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

Example how to use the api

Started by Milhouse van Houten 9 years ago · 0 replies · 767 views
9 years ago

I want to import data from an external source and create pages from that data.
Of course i could just generate the markdown files and put them into the expected folders but that seems hackish.

I'd like to use the API instead but I am not sure how to start. The "documentation" is nothing more than a code documentation. It is missing some real life examples.

To clarify: I have a file in a custom folder (_cron) inside grav's root folder. This should be my point of entry to create new pages programmatically.

Any idea?

last edited 10/18/17 by Milhouse van Houten

Suggested topics

Topic Participants Replies Views Activity
General · by Andy Miller, 6 days ago
0 108 6 days ago
General · by lynbor, 1 month ago
3 437 2 weeks ago
General · by lynbor, 3 weeks ago
7 557 2 weeks ago
General · by Harry, 2 weeks ago
0 159 2 weeks ago
General · by Old Man Umby, 1 month ago
2 308 3 weeks ago