How to Insert TYPO3 Plugin via TypoScript?

Category : 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
}

To keep improving, Do you have feedback and suggestions? Or, Are you facing any issues to implement above TYPO3 tutorial? Feel free to write your comment at below comment box; I'll happy to help you :)

Post Comment

Your email address will not be published. Required fields are marked *

×

Name is required!

Enter valid name

Valid email is required!

Enter valid email address

Comment is required!

Google Captcha Is Required!

Be the First to Comment

Stay up to date with our recent TYPO3 Blogs, news, & updates