What is an eID in the context of TYPO3?
Asked Answered
U

1

5

I have come across this term several times. Often the resources jump right into explaining how to do something but do not mention what this is or what it is for. Also, a bunch of resources are in German or not very clear.

So,

  • What is an eID?
  • Is this a TYPO3 specific thing or is it a general concept?
  • What can you do with it?
  • Is this still relevant for TYPO3 >= 9?

Examples resources:

Either build a plugin you can put on your site, or an eID that does not need a site to function.

https://mcmap.net/q/2030345/-typo3-when-how-to-use-define-39-typo3_mode-39-39-fe-39


This resource actually explains it (though in German), but the code looks terribly outdated.

https://www.webmasterpro.de/coding/article/cms-typo3-eid-mechanismus.html


btw, there is a tag eID on Stack Overflow but it is for Electronic Identity Card :(

Uneducated answered 18/2, 2020 at 14:2 Comment(0)
C
10

The eID mechanism is an outdated approach to have a custom frontend request handler. The default request handling invokes the TypoScriptFrontendController to render pages and content as usual.

Compared to that an eID script can perform arbitary actions to generate output and is not bound to the regular rendering. In fact, eID scripts are executed with a very minimal environment so every dependency (e.g. parsed TypoScript setup) must be loaded manually. There is the EidUtility for common tasks.

Nowadays eID is not necessary anymore since PSR-15 (Middlewares) has been implemented in TYPO3v9. This provides a way cleaner API and makes it easy to inject custom logic anywhere in the frontend request handling, either to perform completely custom output or intercept and modify the default response generated by the TypoScriptFrontendController.

So if possible, middlewares should be used instead of eID scripts.

Clay answered 18/2, 2020 at 14:10 Comment(2)
Perhaps usetypo3.com/psr15-middleware-in-typo3.html would be a good reference to dive into further details and understand PSR-15 in TYPO3 with code examples. Disclaimer: usetypo3.com offers detailed early argumentation and HowTo for new features, nevertheless over time the implementation details might change, thus it could be outdated in contrast to official docs. Official docs for TYPO3 PSR-15: docs.typo3.org/m/typo3/reference-coreapi/master/en-us/…)Hip
Thanks for the suggestion, I've linked the official docs for now, your comment should be enough for usetypo3.com.Clay

© 2022 - 2024 — McMap. All rights reserved.