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

Edit .md page with AJAX and PHP

Started by Muut Archive 11 years ago · 3 replies · 366 views
11 years ago

In the frontend of my website I am trying to load the raw .md page inside a textarea with AJAX, then I want to use EpicEditor to edit it, then I'd like to save the file with PHP and AJAX.

I see in the .htaccess that I cannot access md files, do I need to remove md files from there if I want to get the file with AJAX, or is there a way to get the .md file with Grav API? Something like {{ page.content|raw }}?

11 years ago

Your asking about functionality that is going to be in the Admin plugin (well not ajax yet), but it's a complicated question, and you can get some of this from looking at the admin code when its released on github.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1329 9 years ago
Archive · by Muut Archive, 9 years ago
2 922 9 years ago
Archive · by Muut Archive, 9 years ago
2 4051 9 years ago
Archive · by Muut Archive, 9 years ago
1 2930 9 years ago
Archive · by Muut Archive, 9 years ago
3 1108 9 years ago