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
}

Post a Comment

×
Captcha Code Can't read the image? Click here to refresh

Got answer to the question you were looking for?