Reputation: 664
working with TYPO3 and composer to learn TYPO3 basics. Got a first problem on trying the composer learning example extensions
Could not install distribution 'doc_tut_templating'
Extension Manager is in offline mode. No TER connection available.
OK, need to do it by composer. But how to? Just find how to setup TYPO3 with composer or create extension for use with composer. But how to I install an extension with composer?
Regrads n00n
Upvotes: 3
Views: 5978
Reputation: 664
Found a solution. Simply easy, to easy for me....
Search the extension here: https://composer.typo3.org/ Search for the extension
Take the name and require it in composer composer require typo3-ter/[Extension Name] → composer require typo3-ter/efempty
Upvotes: 3
Reputation: 722
With composer you can only put the sources in their correct positions; an extension still needs to be activated. You can this do in the Extensions model (aka extension manager) or use some automated method like Helmut's TYPO3 distribution uses. This distribution uses TYPO3 Surf and TYPO3 Console for a lot of tasks, one of which is activating the extensions which are required using composer.
You can find more information about using TER extensions with composer on the TYPO3 CMS Composer Repository
There is a nice article about what should be in a composer.json file for extensions if you need to create such a file: composer.json specification for TYPO3 extensions
Upvotes: 2