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

Remove CMS Blocks #1572

Closed
nadar opened this issue Oct 24, 2017 · 2 comments
Closed

Remove CMS Blocks #1572

nadar opened this issue Oct 24, 2017 · 2 comments
Assignees
Milestone

Comments

@nadar
Copy link
Contributor

nadar commented Oct 24, 2017

WHY?

As currently the cms blocks are stored in the cms frontend blocks folder, but may not match the frontend css framework. This allows us to be more flexible in feature and people can decide what types of block they like to install. bs4, bs3, generic, etc..

How to upgrade?

When running the import command an exception will abort the import command: You have to run the generic block updater. ./vendor/bin/luya cms/updater/generic

  1. Make sure you have registered luyadev/luya-generic and luyadev/luya-boostrap3 packages in your composer.json file
  2. Run composer update.
  3. Make a backup of your database!!!
  4. Now run the updater process ./vendor/bin/luya cms/updater/generic
  5. Run the import command again ./vendor/bin/luya import

Details

Split blocks into repositories.

Detailed list of new locations for existing blocks:

  • AudioBlock.php => DROP
  • DevBlock.php => DROP
  • FileListBlock.php => generic
  • FormBlock.php => bs3
  • HtmlBlock.php => system
  • ImageBlock.php => bs3
  • ImageTextBlock.php => bs3
  • LayoutBlock.php => bs3
  • LineBlock.php => generic
  • LinkButtonBlock.php => bs3
  • ListBlock.php => generic
  • MapBlock.php => bs3
  • ModuleBlock.php => system
  • QuoteBlock.php => generic
  • SpacingBlock.php => bs3
  • TableBlock.php => bs3
  • TextBlock.php => generic
  • TitleBlock.php => generic
  • VideoBlock.php => bs3
  • WysiwygBlock.php => generic

generic = https://github.com/luyadev/luya-generic
bs3 = https://github.com/luyadev/luya-bootstrap3
bs4 = https://github.com/luyadev/luya-bootstrap4
system = github.com/luyadev/luya-module-cms

@nadar nadar added this to the 1.0.0 milestone Oct 24, 2017
@nadar nadar self-assigned this Oct 24, 2017
@nadar
Copy link
Contributor Author

nadar commented Oct 24, 2017

  • provide update / upgrade compatibility option like a mapping from old namespace to new namespaces.

@dev7ch
Copy link
Contributor

dev7ch commented Oct 24, 2017

👍

nadar added a commit to luyadev/luya-generic that referenced this issue Nov 8, 2017
nadar added a commit that referenced this issue Nov 21, 2017
nadar added a commit that referenced this issue Nov 27, 2017
@nadar nadar closed this as completed in b354ead Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants