Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filebased ContentBlocks #28

Open
AaronDB2 opened this issue Feb 24, 2021 · 5 comments
Open

Filebased ContentBlocks #28

AaronDB2 opened this issue Feb 24, 2021 · 5 comments

Comments

@AaronDB2
Copy link

No description provided.

@gpsietzema gpsietzema reopened this Mar 1, 2021
@gpsietzema
Copy link

gpsietzema commented Mar 1, 2021

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:

  • Unable to export/import, because all the referenced templates/chunks-files are missing
  • It's a hack and feels wrong ;-)

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
Copy link

Mark-H commented Mar 5, 2021

How's this?

@sdrenth
Copy link

sdrenth commented Mar 5, 2021

@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
Copy link

Mark-H commented Mar 5, 2021

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
Copy link

Mark-H commented Mar 18, 2021

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. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants