Page 1 of 1

Saving A Blog Entry

Posted: Wed May 11, 2022 3:41 pm
by WineMan
Which file and what part of that file saves a blog entry? I'm in the process of learning how this works since FlatPress uses a flat file system. I'm more familiar with database driven blogs.

Re: Saving A Blog Entry

Posted: Wed May 11, 2022 4:23 pm
by Madekozu
/fp-content/content/22/05/

here would be e.g. the entries for May 2022

File format: https://wiki.flatpress.org/doc:tech:fileformats

Re: Saving A Blog Entry

Posted: Wed May 11, 2022 4:36 pm
by WineMan
Thanks for your response. I know where the blog entry is kept...what I am trying to find out is which file saves the blog entry to be placed in the folder /fp-content/content/22/05/

Re: Saving A Blog Entry

Posted: Wed May 11, 2022 4:38 pm
by Madekozu
Write a entry and look in the folder ;)

Re: Saving A Blog Entry

Posted: Wed May 11, 2022 8:03 pm
by bttr
WineMan wrote: Wed May 11, 2022 4:36 pm Thanks for your response. I know where the blog entry is kept...what I am trying to find out is which file saves the blog entry to be placed in the folder /fp-content/content/22/05/
Are you looking for the specific PHP file?
There is a function entry_save() in fp-includes\core\core.entry.php.

Re: Saving A Blog Entry

Posted: Wed May 11, 2022 8:18 pm
by WineMan
That's exactly what I was looking for, thanks so much.

Re: Saving A Blog Entry

Posted: Thu May 12, 2022 7:45 am
by Madekozu
Oh, sorry - I completely misunderstood the question. Just pretend I never answered ;)