2

In existing project which is developed as complete custom solution we face need for content management system (for us as well as client). Our current generic needs are (in WordPress terminology):

  • Create custom post types and taxonomies (translable & versioned).
  • Access given content by progammable API (e.g. get all item of certain post types)
  • Administration for given post type (datagrid + forms)

Considered following options:

  1. Use "standard" CMS (Drupal, Wordpress) - seems impossible as they seem too standalone to just use part of them which would mainly require complete rewrite of our current codebase (which is impossible).
  2. Write such functionality to fit the project - no that much abstract, but no-reusable.
  3. Library providing described functionality, just install and configure the post types, taxonomies... - would be perfect, but haven't found so far. (Symfony CMF seems that it could do this, hard to say from documentation).

Questions:

  1. Is there any CMS with described functionality that would be possible to integrate into existing project?
  2. Is there any library providing described functionality?

Note: previously asked on https://stackoverflow.com/questions/42230616/content-management-for-existing-php-project as I considered it to be a more programming related question.

  • Not sure what you are asking for? You've already identified what you need and the possible solutions to that (WordPress/Drupal etc). What is the issue you are having in integrating these into an existing project? If you are after a way to include functionality from WordPress (for example) in another web based project, take a look at Integrating Wordpress into a non-wordpress Site. I've used that method before to get WordPress posts displaying on a CMS Made Simple based website. – essexboyracer Apr 17 '17 at 5:04
1

From what you wrote I'd say that you should have another look at Drupal.

  • You can easily define your post content types, with custom field names, field types and relational fields. You can translate each post and can define its URL schema. The taxonomy system rocks, you can have parent-child relationships, synonyms, parallel taxonomies, etc.
  • Drupal 8 core is well structured and could theoretically be included as a dependency in your PHP project, where only parts of the Drupal API can be used to have programmatic access to the content objects (querying, filtering, creating, etc). Alternatively, you can use the REST API for access.
  • Administration for post types can be configured.

I'd advise against using a "library" for this, because that library will be lacking all administration functionality (data grid and forms, access restrictions, authentication) and you will be ending up writing your own CMS.

  • I would second this suggestion. I've been a Drupal developer for the past 7 years. While is has its share of frustrations, it will do exactly what you are saying you need it to do. Here is one thing that might help you with the conversion: using a custom module that you write yourself, you can use a callback to execute your arbitrary PHP code. So you don't have to re-write your codebase. Just port it to callbacks, which you then call with Drupal. – user151841 Oct 14 '17 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.