3 ms·
Textpattern is a bit like "everything that's modern and hip right now, like SSG, let's do the opposite". It got a lot of attention and love back in the day, be
by Tomte 7y ago
Textpattern is a bit like "everything that's modern and hip right now, like SSG, let's do the opposite".
It got a lot of attention and love back in the day, because everything is in the database. No template files or anything. You just backup your database.
(It would be great if SQLite was officially supported, or anything but MySQL)
It has a large (for the time) ecosystem of plugins. Which are base64-encoded strings that you upload in a web form in the admin interface. The horror, I know! But back then it was seriously cool.
All templates, forms etc in the database also means you don't have a file lying around. Which means you cannot point your favorite text editor you it. You either use the builtin "editor" (just a form field) or copy and paste it into your editor and back, if you need syntax highlighting, validation or whatever.
Textpattern was pretty much dead a few years ago, but then development picked up again, and now you get a new release every now and then. The development team finally made XHTML optional and HTML5 possible (already quite some time ago), they expanded the builtin template language with new tags. It's tasteful development, not hectic.
Textpattern is great! I'm thinking about using it for a new project as a quasi-SSG, building my site and then wgetting it into static files.
- petecooper 7y ago>I'm thinking about using it for a new project as a quasi-SSG, building my site and then wgetting it into static files. This is an interesting idea - presumably a sitemap-esque file could be generated for an SSG to parse and then bulk download. I've never thought of that. Thanks for the tip!
- Tomte 7y agoThere are sitemap plugins, using those will be my first step. We'll see how far it takes me. Edit: Turns out, you can do sitemaps natively, like that: https://github.com/colak/neme/blob/master/pages/sitemap.tpl https://github.com/colak/neme/blob/master/pages/sitemap.tpl
- stefblokedawson 7y ago> All templates, forms etc in the database also means you don't have a file lying around. Which means you cannot point your favorite text editor you it. That was indeed true, but no more. With the advent of themes from v4.7.0, you can export template files and CSS to the filesystem for version control or whatever purposes you require. Textpattern still reads all its template/tag data from the database by default, but you can import/export the files however you see fit to suit your workflow, or bundle them up to share/reuse. Auto-sync of files<->database during development is supported by a plugin. The reason it's not a core feature is because we've separated the live/dev workflow in the latest version so you can iterate/revamp/update/overhaul your sites on the live server without needing to do the separate staging server dance. See: https://textpattern.com/weblog/424/the-end-of-the-web-development-staging-server https://textpattern.com/weblog/424/the-end-of-the-web-develo... There are so many ways this could be utilised, we felt it better to leave workflow decisions to the site admin. > It would be great if SQLite was officially supported, or anything but MySQL We support MySQL clones such as MariaDB and Percona. Not tried any others yet. PDO support is on the list, but it requires some refactorisation internally so we've been putting it off!
- petecooper 7y ago>All templates, forms etc in the database also means you don't have a file lying around. This has changed a bit. From Textpattern 4.7, there is support for front-side theming in externally-editable files. Although the markup, styling, and other text components are stored in the database, they can be imported from (and exported to) theme files. These theme files can be edited outside of Textpattern, and then ingested into the database. Made changes in Textpattern. Export the current version to the theme files, and you're all synced up.