How to Insert TYPO3 Plugin via TypoScript?

Are you looing for TypoScript to insert TYPO3 plugin or extension? During the TYPO3 template integration, in some situation, you will need to add frontend TYPO3 plugin via TypoScript.

How to Insert TYPO3 Plugin via TypoScript?

Are you looing for TypoScript to insert TYPO3 plugin or extension? During the TYPO3 template integration, in some situation, you will need to add frontend TYPO3 plugin via TypoScript. Here is the syntax and example of TYPO3 News and Solr extension.

Syntax: Create TypoScript Object to Insert TYPO3 Plugin (Tested in TYPO3 >= v9)

 

lib.insertPlugin = USER
lib.insertPlugin {
  userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  extensionName = Extensionname
  pluginName = Pluginname
  vendorName = Vendorname
}

 

Insert TypoScript Object to your TYPO3 Fluid

 

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

 

EXT.news - Create TypoScript Object to Insert TYPO3 News Plugin

 

lib.newsPlugin = USER
lib.newsPlugin {
  userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  extensionName = News
  pluginName = Pi1
  vendorName = GeorgRinger

  switchableControllerActions {
        News {
          1 = list
        }
  }

  settings < plugin.tx_news.settings
  settings {
        //categories = 49
        limit = 30
        detailPid = 31
        overrideFlexformSettingsIfEmpty := addToList(detailPid)
        startingpoint = 13
  }
}

 

EXT.solr Create TypoScript Object to Insert TYPO3 Solr Plugin

 

lib.searchPlugin = USER
lib.searchPlugin {
  userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
  extensionName = Solr
  pluginName = pi_search
  vendorName = ApacheSolrForTypo3
}
  • Create a TypoScript object, for example lib.insertPlugin, that renders the plugin in your template.
  • The syntax on this page was tested in TYPO3 v9 and later.
  • The News and Solr examples show how to adapt it to other extensions.
  • Looking for plugins? Browse the TYPO3 Extensions.

Create a TypoScript object that calls the plugin, as shown in the syntax on this page.

The syntax on this page was tested in TYPO3 v9 and later.

Examples for the TYPO3 News and Solr extensions.

During TYPO3 template integration, when you need to add a frontend plugin or extension through TypoScript.

Yes. Adapt the syntax and the plugin name, as the News and Solr examples show.

You can insert a TYPO3 plugin into your template with TypoScript by creating a TypoScript object. This page shows the syntax (tested in TYPO3 v9 and later) with examples for the News and Solr extensions.

You May Also Like