Saving A Blog Entry

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
User avatar
WineMan
Posts: 106
Joined: Tue Sep 01, 2020 5:03 pm

Saving A Blog Entry

Post by WineMan » Wed May 11, 2022 3:41 pm

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.

User avatar
Madekozu
Posts: 45
Joined: Thu Apr 21, 2022 8:41 am
Location: Hemmingen (Germany, BaWü)
Contact:

Re: Saving A Blog Entry

Post by Madekozu » Wed May 11, 2022 4:23 pm

/fp-content/content/22/05/

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

File format: https://wiki.flatpress.org/doc:tech:fileformats
Bäume spenden Schatten und Kettensägen Licht!

User avatar
WineMan
Posts: 106
Joined: Tue Sep 01, 2020 5:03 pm

Re: Saving A Blog Entry

Post by WineMan » 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/

User avatar
Madekozu
Posts: 45
Joined: Thu Apr 21, 2022 8:41 am
Location: Hemmingen (Germany, BaWü)
Contact:

Re: Saving A Blog Entry

Post by Madekozu » Wed May 11, 2022 4:38 pm

Write a entry and look in the folder ;)
Bäume spenden Schatten und Kettensägen Licht!

bttr
Posts: 47
Joined: Tue Mar 22, 2022 9:20 pm
Location: Berlin, Germany
Contact:

Re: Saving A Blog Entry

Post by bttr » Wed May 11, 2022 8:03 pm

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.

User avatar
WineMan
Posts: 106
Joined: Tue Sep 01, 2020 5:03 pm

Re: Saving A Blog Entry

Post by WineMan » Wed May 11, 2022 8:18 pm

That's exactly what I was looking for, thanks so much.

User avatar
Madekozu
Posts: 45
Joined: Thu Apr 21, 2022 8:41 am
Location: Hemmingen (Germany, BaWü)
Contact:

Re: Saving A Blog Entry

Post by Madekozu » Thu May 12, 2022 7:45 am

Oh, sorry - I completely misunderstood the question. Just pretend I never answered ;)
Bäume spenden Schatten und Kettensägen Licht!

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests