Download the PHP package naboo/craft-siteduplicate without Composer

On this page you can find all versions of the php package naboo/craft-siteduplicate. 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 craft-siteduplicate

Site Duplicate plugin for Craft CMS 3.x

Site Duplicate let's you duplicate entries across Sites in Craft CMS. It even works when section entries aren't set to propagate across site sections making it easy to duplicate entry data between Sites.

Contents

License

This plugin is licensed for free under the MIT License. Please see the LICENSE file for details.

Requirements

This plugin requires Craft CMS 3.0.0 or later.

Installation

To install Site Duplicate, follow these steps:

  1. Install with Composer via composer require naboo/craft-siteduplicate
  2. Install plugin in the Craft Control Panel under Settings > Plugins

You can also install Site Duplicate via the Plugin Store in the Craft Control Panel.

How It Works

The plugin enables you to add a sidebar widget to selected sections for which you would like to be able to duplicate entries across Sites. The widget will display available Sites for the current section.

Notice! Some limitations need to be kept in mind - please see the Known limitations section for more info.

Issues

Please report any bugs/issues you find to the Issues page.

Known limitations

There are some things to keep in mind when duplicating entries across Site sections.

Here's a list of known limitations - and potential workarounds - to keep in mind before duplicating.

1. Issues with element relations

If the Site you are duplicating to is set to not have its entries propagated scross site sections the Site might not be able to have the same type of relations as the Site you are duplicating from.

For example you might want to duplicate an entry from Site A which has an Entries relations field. The field might have a relation to another entry in Site A. When duplicating the entry to Site B the relation isn't available in Site B since the related entry exists only in Site A (this goes for all relations, entries, assets, categories...). This will cause Craft to throw a validation error when duplicating the entry, leaving the duplicated entry in Site A.

But there is a workaround. Before duplicating the entry from Site A you can remove/disable the relation since the plugin will actually duplicate what's on the screen - not what's in the database. So let's say you want to duplicate an entry that has a relation - before duplicating the entry you'll just remove/disable the relation (only on screen - you don't need to save the entry in Site A) like this:

... then you duplicate the entry and Craft will be able to duplicate the entry data to another Site.

2. Parent entries (structures) aren't supported when duplicating

Another limitation is that all entries being duplicated will always duplicate to the root level of the section. So if the section you are duplicating within is a Structure and sits at level 2 in Site A the duplicated entry will always duplicate to the root level in Site B. This is to prevent Craft from throwing errors if the section hasn't the same entry setup between Sites. It's almost the same logic as the limitation with relations. If the relation isn't there - it can't be duplicated.

Credits

Brought to you by Johan Strömqvist

Big thanks to Pixel&Tonic for making an amazing CMS. Site Duplicate also uses a lot of code from Craft core.


All versions of craft-siteduplicate with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.4.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 naboo/craft-siteduplicate contains the following files

Loading the files please wait ....