by BillinghamJ · 11y ago · 0 comments
I'd really like to see CMSes which only do content management, then expose that content via very simple JSON APIs. Then I build the website myself separately as a super lightweight HTML rendering service which pulls from the CMS API.
Every CMS I've ever used didn't scale because its templating/rendering/request stack was so heavy.
As a bonus, the it also makes writing simple pure-php "templates" (yea, its not really templates, but) super easy. You basically just drop in your HTML/CSS/JS stuff, and add a few pw api lines here and there, and you're done.
In my experience after 8 years of Drupal experience, and 1 year of ProcessWire experience, is that PW is what Drupal should have been from the start: Elegant, Lightweight, Fast, and Flexible. I'm sold!
But in my experience, it's not fast: even with caching enabled, every request took >250ms. I don't want to rely on Varnish for reasonable latency. Did I do something wrong?
Drupal 8 does exactly this. Use Drupal 8 for data modeling and storing the data. Use its forms if you want to. Retrieve the data using GraphQL and do all the rendering yourself. It even is capable of a hybrid model, where it serves pages BigPipe-style, and you do client-side rendering for the most dynamic/interactive parts.
Have these issues been resolved in later versions? Because there was a lot about Drupal that I did like.
Massive modernization. Most high-level concepts remain the same. The implementation became much better. And it's a joy instead of a pain to extend/customize.
I recommend you to take a look :) See https://www.drupal.org/drupal-8.0 — RC1 was tagged _yesterday_.
It sounds like you will particularly like the Configuration System. See https://www.chapterthree.com/blog/principles-configuration-m...
There are plugins available for other CMSs[2] which do pretty much the same thing too.
[1]: http://v2.wp-api.org [2]: https://github.com/pixelandtonic/ElementAPI
Having a great JSON API baked into the core and dogfooded for the admin UI should really be a focus for WordPress.
Have you tried version 2? Personally I found it substantially easier to work with than v1.
Awesome, that's great to hear.
> Have you tried version 2?
I've actually worked with both versions. v2 is nicer but also didn't support some required functionality at all.
Are you concerned about being coupled to the particular shape of the returned JSON? That seems valid to me, especially if you're not very fond of the schema.
I wouldn't advocate for WP for anyone continually developing an evolving product, but for small business clients it's not bad. It's easy to use and familiar, which goes a long way.
I think I'd be more tempted to adopt a CMS library than a CMS framework.
Why not put it in the search engine to start with? So the editors can edit the content. And the search engine is rarely the master of the data.
Another important distinction between CMSs are those provide full templating system (Wordpress etc) and those that control the request, but don't put any restrictions on how the html is generated. You use standard .net/java/javascript to generate the template based on data from the CMS. Two completely different approaches.