Ok, so new to Grav and I’m trying to find a way to import all my posts from a previous blog. I have been using b2evolution, but it’s pretty much dead with no one taking over the development. However, I have a LOT of posts in the system that I really do want to bring over. Eaisest way to pull them is from XML, and I can take that and convert it to text or HTML, but I’m not seeing a way to import them into Grav as actual posts. There’s one old plugin that supposed to do it, but it’s not working. I’ve also got it in Excel, don’t know if that would work better.
I did see one post on importing from a XML feed, and while I can parse it, I don’t know how to separate the posts. Any help would be appreciated!
Without any information about the content of XML there is not much to say.
“There’s one old plugin that supposed to do it”
Which plugin?
“I did see one post on importing from a XML feed”
Which post?
“but I’m not seeing a way to import them into Grav as actual posts”.
Grav is a flat file CMS, which means that posts are a folder containing a plain file. “Importing” is a matter of creating files.
Feed Us
I installed it, and from what I can tell, it’s simply a plugin where you add the code to the template and it will display them on a page. Handy for some things, but not what I’m looking for.
The response is to create a plugin, which I’m ok if I have to do it, but I’ve never done one like this, and obviously not for Grav.
I understand that, that’s the problem. If it was a database, I could build something to import what I have. It’s the pulling the info and separating out the posts to individual files that I’m lost on. I don’t actually think you can do it with a plugin, but if anyone knows a script or method that can do it externally, that at least lets me have the individual posts that I can work with. Given that I have almost 200 posts to import, anything to cut down on the manual work would be very helpful!