Skip to content
Snippets Groups Projects
README.md 3.34 KiB
Newer Older
# Instalation guide for SGalinski.TypoScriptReferenceFrontend Flow package

SGalinski.TypoScriptReferenceFrontend is Flow package, so you need first a flow project:

damjan's avatar
damjan committed
    composer create-project --dev --keep-vcs typo3/flow-base-distribution ProjectName
    
You can use any project name you wish. If you already have Flow project, you can skip this step.


The project can be installed by composer, or downloaded from git:
 
### A) Install by composer
damjan's avatar
damjan committed
    TODO: Setup composer.json to install from git repository
damjan's avatar
damjan committed
    cd ProjectName
    composer require ...
    composer update
### B) Download from git
damjan's avatar
damjan committed
    cd Packages/Application
    git clone git@gitlab.sgalinski.de:typo3/TypoScript-Forger.git SGalinski.TypoScriptReferenceFrontend
    cd typo_script_backend
## Supply the necessary routes

Edit Routes.yaml of your project (`ProjectName/Configuration/Routes.yaml`)

### If you are using WMDB.Forger package in same project

It is important to include SGalinski.TypoScriptReferenceFrontend subRoutes before WMDB.ForgerSubroutes to avoid
route conflicts. 
damjan's avatar
damjan committed
The prefix `ts` in uriPattern: `ts/<SGalinski.TypoScriptReferenceFrontend>` has purpose to avoid the conflict.

<pre>
-
  name: 'TypoScriptReferenceFrontend'
  uriPattern: ``'ts/<SGalinski.TypoScriptReferenceFrontend>'``
  subRoutes:
    SGalinski.TypoScriptReferenceFrontend:
      package: SGalinski.TypoScriptReferenceFrontend

-
  name: 'Forger'
  uriPattern: `'<WMDB.ForgerSubroutes>'`
  subRoutes:
    WMDB.ForgerSubroutes:
      package: WMDB.Forger

##
# Flow subroutes
#

-
  name: 'Flow'
  uriPattern: '<FlowSubroutes>'
  defaults:
    '@format': 'html'
  subRoutes:
    FlowSubroutes:
      package: TYPO3.Flow
</pre>

### In empty project Routes.yaml looks like this
damjan's avatar
damjan committed
    -
      name: 'TypoScriptReferenceFrontend'
      uriPattern: '<SGalinski.TypoScriptReferenceFrontend>'
      subRoutes:
        SGalinski.TypoScriptReferenceFrontend:
          package: SGalinski.TypoScriptReferenceFrontend
    
    ##
    # Flow subroutes
    #
    
    -
      name: 'Flow'
      uriPattern: '<FlowSubroutes>'
      defaults:
        '@format': 'html'
      subRoutes:
        FlowSubroutes:
          package: TYPO3.Flow
damjan's avatar
damjan committed
Uri prefix can be added if needed.

damjan's avatar
damjan committed
To be able to integrate `SGalinski.TypoScriptReferenceFrontend` package with other packages 
(for example to use existing menu from other package), view configuration in main project is needed.

damjan's avatar
damjan committed
Here is view configuration for integration with `WMDB.Forger` package.
damjan's avatar
damjan committed
`ProjectName/Configuration/Views.yaml`:
<pre>
-
  options:
    layoutRootPaths:
      'WMDB.Forger/Layouts': 'resource://WMDB.Forger/Private/Layouts'
    partialRootPaths:
      'WMDB.Forger/Partials': 'resource://WMDB.Forger/Private/Partials'
      'SGalinski.TypoScriptReferenceFrontend/Partials': 'resource://SGalinski.TypoScriptReferenceFrontend/Private/Partials'
#    templateRootPaths:
#      'WMDB.Forger/Templates': 'resource://WMDB.Forger/Private/Templates'
#      'SGalinski.TypoScriptReferenceFrontend/Templates': 'resource://SGalinski.TypoScriptReferenceFrontend/Private/Templates'
</pre>

## Install backend

This project is front end part of grater entity. 
All the data which is used by this package is provided by RESTful web service:

    https://gitlab.sgalinski.de/typo3/TypoScript-Backend
    
damjan's avatar
damjan committed
If the web service is not installed, follow it's readme to do so.