dd/evolutioncms-plugins-ddrunsnippets

There is no license information available for the latest version (1.1.0) of this package.

A plugin for (MODX)EvolutionCMS.snippets.ddRunSnippets.

1.1.0 2023-05-03 20:59 UTC

This package is auto-updated.

Last update: 2024-05-03 23:20:05 UTC


README

A plugin for (MODX)EvolutionCMS.snippets.ddRunSnippets.

Requires

Installation

Manually

Elements → Plugins: Create a new snippet with the following data

  1. Plugin name: ddRunSnippets.
  2. Description: <b>1.1</b> A plugin for (MODX)EvolutionCMS.snippets.ddRunSnippets..
  3. Category: Core.
  4. Parse DocBlock: no.
  5. Plugin code (php): Insert content of the ddRunSnippets_plugin.php file from the archive.
  6. System events:
    1. OnCacheUpdate.
    2. OnDocFormDelete.
    3. OnDocFormSave.

Using (MODX)EvolutionCMS.libraries.ddInstaller

Just run the following PHP code in your sources or Console:

//Include (MODX)EvolutionCMS.libraries.ddInstaller
require_once(
	$modx->getConfig('base_path') .
	'assets/libs/ddInstaller/require.php'
);

//Install (MODX)EvolutionCMS.plugins.ddRunSnippets
\DDInstaller::install([
	'url' => 'https://github.com/DivanDesign/EvolutionCMS.plugins.ddRunSnippets',
	'type' => 'plugin'
]);
  • If ddRunSnippets is not exist on your site, ddInstaller will just install it.
  • If ddRunSnippets is already exist on your site, ddInstaller will check it version and update it if needed.

Links