Search code examples
typo3felogin

TYPO3 - How to render felogin with typoscript at a certain spot on a page?


How can I render felogin to a certain spot on a website? Does this work with typoscript and how?


Solution

  • Render within pure TypoScript

    It depends how would you like to display it. If directly in TypoScript, you can just copy plugin.tx_felogin_pi1 object into your content.

    page = PAGE
    page.10 < plugin.tx_felogin_pi1
    page.10.storagePid = 1
    

    You need to setup appropriate storagePid of course. Just added it as an example - otherwise felogin plugin will throw an error, as it is required setting.

    Render within Fluid

    If you would like to render it inside of Fluid template you could copy plugin.tx_felogin_pi1 object into another TypoScript object, for example lib.loginBox

    lib.loginBox < plugin.tx_felogin_pi1
    lib.loginBox.storagePid = 1
    

    And then display in Fluid template using f:cObject ViewHelper:

    <f:cObject typoscriptObjectPath="lib.loginBox" />
    

    Here are all settings for felogin. All of them can be set in the same way as storagePid in examples above.

    https://docs.typo3.org/typo3cms/extensions/felogin/Configuration/Index.html