Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#196 2020-10-22 23:41:40
Re: Testers needed: flat development (4.7+ only)
mrdale wrote #326515:
the setup script goes and grabs these flat file items and throws them in the db, but is only invoked when you first install TXP.
Correct.
At some point a plugin could basically trigger an import constantly as things change in the file system and pages are accessed on the site.
Yes. As long as the content is in XML format and the plugin handled update vs insert (upsert) correctly, it’s game on.
And when items are added via the Admin layer files could write to these directories.
Nothing to stop it doing that too. The XML format is pretty standard. It’s just an XML-equivalent structure of the database tables. Link tables might be fun. But we don’t have (m)any of those… yet.
The trick – and the reason we stopped short of doing it in core for themes at least – is how to reliably determine what is “newer”.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#197 2022-12-15 07:46:04
Re: Testers needed: flat development (4.7+ only)
I am using etc_flat to develop a theme on a live server (easier for customer feedback, editing with vscode via ssh, using git for version controll -> very nice and usefull combination).
It worked flawless, but suddenly etc_flat started throwing error messages. The page itself renders correctly. Since then I have tried updating db from disk, exporting db to disk, but I still have no idea to get rid of the error messages.
Here is a link to a screenshot of my page
I think etc_flat look for form in each category (article/comments/links/files etc.) and logs the error message, if it is not there.Is this a bug or am I doing something wrong?
Offline
#198 2022-12-15 08:10:38
Re: Testers needed: flat development (4.7+ only)
I guess you (or your host) have upgraded php version, so previously silenced missing forms warnings are not any more.
I have updated the plugin code, please test.
Offline
#199 2022-12-15 10:03:44
Re: Testers needed: flat development (4.7+ only)
Wow, thank you for this quick response.
I have installed the updated version: it works and the error message have disappeared. 🙌
Thank you!
Offline