Download the PHP package dd/evolutioncms-plugins-ddsendredirect without Composer

On this page you can find all versions of the php package dd/evolutioncms-plugins-ddsendredirect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package evolutioncms-plugins-ddsendredirect

(MODX)EvolutionCMS.plugins.ddSendRedirect

Redirects from required non-existent URLs to required target URLs. You can redirect to any existing site page or to any external URL at all.

Each URL can be specified in one of the following format:

  1. Full: https://example.com/some/page.
  2. Without protocol: example.com/some/page, //example.com/some/page.
  3. Without domain: some/page, /some/page.
  4. Just an ID of the existing document: 12 (only for target URLs).

Requires

Installation

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

  1. Plugin name: ddSendRedirect.
  2. Description: <b>2.0</b> Redirects from required non-existent URLs to required target URLs..
  3. Category: Core.
  4. Parse DocBlock: no.
  5. Plugin code (php): Insert content of the ddSendRedirect_plugin.php file from the archive.
  6. Properties: Insert content of the ddSendRedirect_configuration.json file from the archive.
  7. System events:
    1. OnPageNotFound.

Usage

1. Create TV and document with redirection rules

Redirection rules will be stored in TV value of specified document. The plugin gets the rules from the TV.

  1. Create the TV:
    • Name: settings_redirectionRules (you can specify another name, this is an example).
    • Input Type: Textarea.
  2. Assign the TV to a required template.
  3. Create a document with specified template. Let the document ID be 42.

2. Configure (MODX)EvolutionCMS.plugins.ddSendRedirect

Go to the plugin configuration tab and save the data:

  1. Document ID containing redirection rules: 42.
  2. TV name containing redirection rules: settings_redirectionRules.

3. Set up (MODX)EvolutionCMS.plugins.ManagerManager.mm_ddMultipleFields (optional)

You can use this interface for more convenience.

If you don't want to use mm_ddMultipleFields, you can just fill JSON manually in the following format:

Parameters description

Links


All versions of evolutioncms-plugins-ddsendredirect with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
dd/evolutioncms-libraries-ddtools Version >=0.55.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dd/evolutioncms-plugins-ddsendredirect contains the following files

Loading the files please wait ....