Skip to content

Commit 5cf0b75

Browse files
committed
Update install 2.1
Update install 2.1
1 parent 6841327 commit 5cf0b75

File tree

1 file changed

+62
-53
lines changed

1 file changed

+62
-53
lines changed

manual/install.rst

+62-53
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,77 @@
33
Install and update MetaModels
44
==============================
55

6-
You will need a Contao-LTS-version to be able to install MetaModels
7-
- the current version is Contao 3.5.x
6+
The current MetaModels 2.1 for Contao 4 is used as usual for the current LTS (4.4)
7+
tested extensively and is released for it - after the previous tests, MM 2.1 is running.
8+
but also without problems under 4.6.
89

10+
The installation of MM 2.1 requires PHP version 7.1 or higher - PHP 7.2 is recommended.
911

10-
Installation via Composer
11-
-------------------------
12+
MetaModels 2.1 can be installed via the Contao-Manager or via the console via Composer.
13+
see the following section.
1214

13-
MetaModels and all its dependencies can be installed with the `Composer package manager <https://c-c-a.org/ueber-composer>`_
14-
in the Contao backend.
15+
.. seealso:: For a re-financing of the extensive work, the MM team asks for financial
16+
Gift. The scope of the project to be realised should be taken as a guideline.
17+
and about 10% will be taken into account - based on the experience of the last grants, are
18+
the amounts between 100€ and 500€ (net) - an invoice incl. VAT will of course always be
19+
is on display. `More... <https://now.metamodel.me/de/unterstuetzer/spenden>`_
1520

16-
If your Contao installation is already using the new Composer package manager, you can easily install MetaModels by selecting, respectively typing in the package name into the search field, as follows:
1721

18-
* `metamodels/bundle_all <https://packagist.org/packages/MetaModels/bundle_all>`_
22+
Installing MM 2.1
23+
-----------------
24+
25+
The installation requirements for MetaModels 2.1 are:
26+
27+
* a running Contao 4.4.x (LTS) and
28+
* PHP 7.1/7.2
29+
* MySQL from 5.5.5 (InnoDB), MariaDB (without `strict mode`)
30+
31+
Higher versions of Contao and/or PHP are possible, but not officially supported.
32+
33+
In the Contao manager you can enter `metamodels/` to get all available packages
34+
are listed. The basic package `metamodels/core` has to be installed - and in addition
35+
additional attributes and filters can be added depending on the task.
36+
37+
In addition to the individual packages, there are `bundles` which contain different packages for a
38+
simplified installation.
39+
40+
For an introduction to MetaModels we recommend the bundle `metamodels/bundle_start` - herewith
41+
the core as well as the most important attributes and filters are defined without e.g. the packages for multilingualism
42+
installed.
43+
44+
As in MetaModesls 2.0, there is also the `metamodels/bundle_all` bundle, which is installed next to the
45+
`bundle_start` will also install the multilanguage packages (note: the `translatedselect` packages are also installed).
46+
`translated tags` are no longer included here, as they are only to be used for special cases).
47+
48+
Further modules like "Register filter", "Radius search", "Rating" etc. are available as separate packages
49+
to add.
50+
51+
In addition to the Contao Manager, the installation of packages and bundles can be done directly via the console via
52+
Composer possible - e.g. with
53+
54+
``php web/contao-manager.phar.php composer require metamodels/core``
1955

20-
Regarding the bundle, you will have to select version "2.0.x" at the moment - this bundle will automaticaly install the complete "MetaModels core" with it. While selecting restrictions you can choose between different stages, such as "bugfix release", "feature release" etc. - the current MetaModels functions will be activated with "feature release".
56+
or
2157

22-
In case that you don't need all filters and attributes, you can also install them separately or you can select another `Bundle package <https://github.com/MetaModels?query=bundle>`_. The packages mentioned above are grouped together and should meet most requirements.
58+
``php web/contao-manager.phar.php composer require metamodels/bundle_start``
2359

24-
You can find an overview of your already installed packages in the display of the dependency graph (checkbox) in the Contao Composer client ("Package management").
60+
Instead of `php` you may have to specify the path to the corresponding PHP binary.
2561

26-
Installaton via Nightly build
27-
------------------------------
62+
After the installation a **update of the database is not possible via the install tool of Contao.
63+
to forget!**
2864

29-
Alternatively to the installation via Composer, you can install MetaModels via FTP. To do this, you will have to download the current version of MetaModels from the `project website http://now.metamodel.me/ <http://now.metamodel.me/>`_
30-
unzip it and upload it via FTP to your server. Most of the folders have to be saved into the folder `/system/module` - only two PHP files which are supporting the Ajax functions have to be saved into the Contao root directory.
65+
With a conversion (2.0 -> 2.1) or a new installation it is a good opportunity to only use the attributes and filters
66+
which are necessary for the project. Was previously e.g. `metamodels/bundle_all` in use,
67+
you can query the really used attributes and filters with the following SQL commands:
3168

32-
Afterwards you will have to update the database in the "extension manager".
33-
If the following error message appears ``Fatal error: Class 'MetaModels\Helper\UpgradeHandler' ....!metamodels-tng-branch/config/runonce_0.php`` you should purge the internal cache. This option can be found in the menu item "Maintenance" of the Contao backend.
69+
.. code-block:: sql
70+
:linenos:
71+
72+
-- Attribute
73+
SELECT type FROM `tl_metamodel_attribute` GROUP BY type ORDER BY type
74+
75+
-- Filter
76+
SELECT type FROM `tl_metamodel_filtersetting` GROUP BY type ORDER BY type
3477
3578
3679
Testing of special packages via Composer
@@ -45,8 +88,8 @@ For the selection in the package management, check the checkbox "dependencies i
4588
After "Reserve package for installation" you'll have to make some small changes to Composer-JSON. To do this go to the package manager to "settings" and there click onto "expert mode". The displayed JSON file has to be extended with the entry "as 2.0.0" within the node "require". If you happen to have several extra packages you have to do this for every entry.
4689

4790
for example: |br|
48-
``"metamodels/core": "dev-hotfix-xyz"`` modify to |br|
49-
``"metamodels/core": "dev-hotfix-xyz as 2.0.0"``
91+
``"metamodels/core": "^2.1"`` modify to |br|
92+
``"metamodels/core": "dev-hotfix/2.1.25 as 2.1.25"``
5093

5194
After the installation via "update packages" you should delete the Composer cache in the "settings" of the package management.
5295

@@ -59,40 +102,6 @@ Please never forget to provide the MetaModels developer team with your valuable
59102
`Github <https://github.com/MetaModels>`_.
60103

61104

62-
Update MetaModels
63-
-----------------
64-
65-
If you installed MetaModels via Composer you will also have to update it that way.
66-
67-
With the manual MetaModel installation you have to consider several aspects.
68-
The following procedure has shown itself to be the most efficient:
69-
70-
* delete ALL old MetaModel folders (you can check which folders these are by double-checking the previous download) - really **ALL**
71-
* Clear the Contao cache -> /system/cache (everything there within this folder)
72-
* **NEVER EVER** do a database update (otherwise all will be gone)
73-
* download the new nightly build files, unzip and upload them (via FTP)
74-
* update the database via /contao/install.php
75-
76-
You can find the most current information in the `forum <https://community.contao.org/de/showthread.php?56725-MetaModels-aktualisieren-%28ohne-Composer%29>`_
77-
78-
Switch MetaModels from "Nightly build" to "Composer"
79-
-----------------------------------------------------
80-
81-
The procedure is similar to "Update MetaModels". By switching to Composer you should consider that Composer is a memory intensive application. Based on experience, you should have at least 100MB. The exact required memory size is dependent on other installed packages and also on the server configuration of your provider.
82-
83-
The following procedure has shown itself to be the most efficient:
84-
85-
* install Composer
86-
* delete ALL old MetaModel folders (you can see which folders these are by double-checking your previous "nightly" download) - really **ALL**
87-
* Clear the Contao cache -> /system/cache (everything there within this folder)
88-
* **NEVER EVER** do a database update (otherwise all will be gone)
89-
* in Composer select the desired MetaModel version, reserve for installation, then install
90-
* the database update should then automatically being proposed and done
91-
92-
You can find the most current information in the
93-
`forum <https://community.contao.org/de/showthread.php?59961-MetaModels-aktualisieren-%28von-Nightly-Build-zu-Composer%29>`_
94-
.
95-
96105
.. |br| raw:: html
97106

98107
<br />

0 commit comments

Comments
 (0)