Skip to content

This is a Magento2 module to programmatically create and update CMS content.

Notifications You must be signed in to change notification settings

Space48/cmscontent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CmsContent

Scrutinizer Code Quality Build Status Code Coverage

This is a Magento2 module to import and export CMS content.

Installation

Manually

To install this module copy the code from this repo to app/code/Space48/cmscontent folder of your Magento 2 instance, but DO NOT run php bin/magento setup:upgrade

Via composer:

From the terminal execute the following:

composer config repositories.space48-quick-view vcs [email protected]:Space48/cmscontent.git

then

composer require "space48/cmscontent:{release-version}"

How to use it

This is a CLI Tool so you can use as part of bin/magento or magerun2 options. This tool add the following Space48 commands:

  • space48:cms-content:import
  • space48:cms-content:export
  • space48:cms-content:delete

Commands

space48:cms-content:import {argument}

This command will import CMS Pages and Blocks from csv files to the database. The csv files need to be placed into vendor/space48/cmscontent/fixtures.

If the CMS Page or Block does not exists it will created and if it doesn't it will update it.

Usage:
 space48:cms-content:import cmsType

Arguments:
 cmsType               pages, blocks, all
    

space48:cms-content:export {argument}

This command will export CMS Pages and Blocks from the database to a csv files. The generated files can be found under vendor/space48/cmscontent/fixtures.

Usage:
 space48:cms-content:export cmsType

Arguments:
 cmsType               pages, blocks, all
    

space48:cms-content:delete {argument}

This command can be use to delete CMS Pages and Blocks.

Usage:
 space48:cms-content:delete cmsType

Arguments:
 cmsType               pages, blocks, all
    

About

This is a Magento2 module to programmatically create and update CMS content.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages