I’m struggling with what I think is a simple scenario, any help would be appreciated.
I want to automatically generate blog posts from a database (e.g. Notion, Airtable, …) to take a template file and replace place holders with database fields.
I’ve successfully done this with Webflow but can’t help thinking it’s overkill. I already have the template I need, I just want to generate a page for each database record and copy it to my webiste (probably easiest with FTP)
I’ve seen the great video from Andy O’Neill but it’s the idea of using a template I would really like to nail
Any assistance to help my mental block would be very welcome
You could use Search and Replace module to retrieve custom fields using regex.
For example: Hi {{NAME}} … on regex you will search for that string and use the value that you want.
I’m doing that. It’s reading and writing files which seems to be the issue now. I can also it it with a custom api but rather do it in pure Make. Doesn’t seem an unreasonable request
So what is the issue @mdb213 ? The approach above noted by @Juani using RegEx would probably be the best way to do this.
What kind of error do you have? Can you provide some screenshots?
Thanks Bjorn, sounds pretty much what I need. It’s fairly obvious but I didn’t click that read and write is replaced with upload and download. I’ll give it a go
Did you have a minute to try @Bjorn.drivn’s solution? If yeah could you share with us your progress please? This way we keep the community organized and neat.