Generate a frontend view from a TCA table similar to the TYPO3 backend | Read-only mirror of https://github.com/DSI-VD/tcafe — Canton de Vaud. Issues & pull requests at the source.
  • PHP 80.7%
  • HTML 19.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-06-28 17:59:59 +02:00
Classes [TASK] remove reference to external extension, fix Name to Path 2020-06-28 14:57:38 +02:00
Configuration [TASK] tcafe demo and readme 2020-06-28 17:59:59 +02:00
Demo [TASK] Add t3d demo 2020-01-09 13:43:31 +01:00
Resources/Private [TASK] tcafe demo and readme 2020-06-28 17:59:59 +02:00
Tests/Unit [TASK] Implement dataProvider, just a beginning... 2020-01-21 08:29:49 +01:00
.gitignore [TASK] Add base files for plugin 2019-12-13 10:19:43 +01:00
.php_cs [TASK] Add base files for plugin 2019-12-13 10:19:43 +01:00
composer.json [TASK] Namespace refactoring 2019-12-13 11:36:31 +01:00
ext_emconf.php [TASK] Add base files for plugin 2019-12-13 10:19:43 +01:00
ext_localconf.php [TASK] Code cleanup 2020-01-07 09:52:08 +01:00
ext_tables.sql [TASK] Code cleanup 2020-01-16 13:51:57 +01:00
notes.md [TASK] tcafe demo and readme 2020-06-28 17:59:59 +02:00
README.md [TASK] tcafe demo and readme 2020-06-28 17:59:59 +02:00
typoscript-lint.yml [TASK] Add base files for plugin 2019-12-13 10:19:43 +01:00

TYPO3 tcafe

Introduction

The backend TYPO3 is able to display any TCA tables. This extension try just to do the same for the frontend.

Components

  • Data
  • Filter and Search
  • Infos nb/nb
  • Pagination
  • List view
  • Detail view

Requirements

  • TYPO3 CMS 8.7.x - 9.5.99
  • PHP 7.2.0-7.2.99

Installation

Installation using composer

Create a view

  • Create a new TCA or use an existing one
  • Create a myTable.yaml configuration
  • Create a MyTList.html or use the default template
  • Create a MyDetail.html or use the default template
  • Add the plugin on a page
  • Select the myTable.yaml configuration

Code

  • The TCA is the base of this extension
  • tcafe.yaml is the extended TCA configuration for the frontend
  • The controller reads the TCA, the tcafe and the additional filter, retrieve the datas, then inject the content to fluid
  • Fluid is the view
  • Use the same backend code of BE.List and BE.Edit views
  • No Data model
  • No tests
  • No flexform
  • No DB
  • No css
  • Use (doesn't use) SQL configuration ?

How it works

  • Create a new TCA or use an existing one
  • Create a myTable.yaml configuration
    • set the table to work with
    • configure the VIEW
  • Create a MyTableList.html or use the default template
  • Create a MyDetail.html or use the default template
  • Controller read myTable.yaml configuration
    • DataFinder get first level records with filter (input, select) relation
    • DataFinder get and set the Type of the field used in FLUID Types/{field.config.type}

Add the demo table

  • update tcafe table
  • import tcafe-demo.t3d

External calls