Anastasia
Anastasia

Reputation: 325

TYPO3 insert plugin on every new page of specific type

I have created my TYPO3 extension and now I can create pages of a new type. Now I want to have a plugin on every new page of this type. So that there will be no need to add manually a plugin on every page. Can I do it somehow?

Upvotes: 0

Views: 239

Answers (1)

Riccardo De Contardi
Riccardo De Contardi

Reputation: 2148

You can add to your fluid template a typoscript object

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

Assuming that your plugin is a content object with known ID, created inside a sysfolder (just for example), the TypoScript to access it should be IIRC

lib.foo = RECORDS
lib.foo {
   dontCheckPid = 1
   tables = tt_content
   source = ID # Enter the object's ID here
}

Upvotes: 2

Related Questions