Sterc / revolution

MODX Revolution - Content Management Framework
https://modx.com/
GNU General Public License v2.0
6 stars 1 forks source link

Filebased ContentBlocks #28

Open AaronDB2 opened 3 years ago

gpsietzema commented 3 years ago

Please note: this will not be a PR towards the CB repo. It's proprietary software, written by the wonderful people of modmore: https://modmore.com/contentblocks/

This issue is part of the '21 MODX SnowUp/BugHunt and has a bounty on it (https://vi.to/hubs/modx-meetup).

What is this about? What we and other agencies are looking for is a workflow/automated process which makes it easy to make ContentBlocks templates, fields and layouts filebased, so we can edit them in our favorite IDE and maintain them in our git-based version control systems.

Example of how we do it now (using a snippet to render blocks): image

Downsides of this:

Requirements:

  1. No PR, since it's kind of hard to PR this... A zipfile + reply to this issue will be sufficient
  2. Please explain your workflow
  3. If your solution comes with CLI scripts, they should run in a watcher. So the script has to detect if changes were made.
Mark-H commented 3 years ago

How's this?

sdrenth commented 3 years ago

@Mark-H This sounds promising! Also glad to see a fix released for the export/import of repeater fields. I'm guessing the file based configuration of blocks is still something we can expect in V2? Great work!

Mark-H commented 3 years ago

Yeah a full built-in static workflow is still in the tracker for 2.0.

Had an interesting chat with Ben "Mon Cheri" Davis earlier this week that prompted some interesting ideas, but I wont be able to actually work on that (and comment too much on those ideas publicly) until other parts of v2 are done. ;)

Mark-H commented 3 years ago

For obvious bounty-related reasons I'm curious if you've had a chance to try out the update to see to what extent that resolves the challenges Sterc was facing with a static workflow. ;)