Questions tagged [extbase]

Extbase is a TYPO3 CMS extension development framework working closely with TYPO3 Fluid and TYPO3's Extension Builder.

Extbase is a TYPO3 CMS extension development framework written in PHP . Its purpose is to be the foundation of model-view-controller driven extensions. It replaces the older TYPO3 pibase extension development methodology. Extbase works closely with the TYPO3 Fluid templating engine, and with the TYPO3 Extension Builder.

Resources

1425 questions
4
votes
3 answers

Implement a REST service with Extbase (Typo3)

I'm searching for a way to implement a REST-Service in an extbase extension for Typo3. I've only found old or not maintained extensions and they doesn't use extbase. So how could I get an extension that provides an API for external…
FlorianX
  • 221
  • 1
  • 3
  • 7
4
votes
1 answer

TYPO3 4.7.2 include extbase plugin via typoscript

I wrote an extension and the implementation of the Plugin via backend does everything correctly. But when I try to implement my extension via typoscript I got this error everytime: Oops, an error occurred! The default controller can not be…
Kai
  • 53
  • 2
  • 6
4
votes
1 answer

TYPO3 Extbase storagePid

I need to get the actual "general record storage page id". I found the following snipplet but the variable is empty even though the storagePid is set on the page. $config =…
netcase
  • 1,319
  • 2
  • 13
  • 15
4
votes
2 answers

How do I include or autoload external libraries in a TYPO3 Extbase Extension? + Dependecy Injection?

I'm developing a TYPO3 4.6 Extension with Extbase 1.4 and im trying to include an external library. The library, in my case the facebook PHP SDK, is under $_EXTKEY/Resources/PHP/facebook-php-sdk/facebook.php. I would like the library to autoload…
PeterTheOne
  • 343
  • 6
  • 15
3
votes
2 answers

How to debug Dependency Injection Bugs in Extbase?

I'm building an extension in Extbase (latest version, latest typo3) and am having repositories injected into my models. This simply does not work. No errors, no clues, nothing. The inject* Method simply does not get called. The exact same Injection…
shredding
  • 5,374
  • 3
  • 46
  • 77
3
votes
1 answer

TYPO3 throws Error after Updating to 11.5.16 and PHP 8.1 (get_class_methods(): Argument #1

After Updating from TYPO3 9.5.x LTS and PHP 7.4 to TYPO3 11.5.16 and PHP 8.1 I am getting this error: get_class_methods(): Argument #1 ($object_or_class) must be an object or a valid class name, string given I know it's about my Extension (when I…
lufi
  • 610
  • 7
  • 29
3
votes
2 answers

TYPO3 RouteEnhancer for extension web2pdf

I am trying to set up a RouteEnhacer for the TYPO3 extension web2pdf to rewrite URLs like https://example.com/subpage/?tx_web2pdf_pi1[action]=generatePdfLink&tx_web2pdf_pi1[argument]=printPage&tx_web2pdf_pi1[controller]=Pdf&cHash=123456789 to…
Ben
  • 811
  • 12
  • 28
3
votes
0 answers

Get translated child elements in TYPO3 Extbase Controller

I have the given Structure: Root category -> First level categories-> Second level categories The Root is fetched by the regarding repository (extended sys_category repository) and the default query setting ->setLanguageOverlayMode(true). The first…
Jonas
  • 349
  • 3
  • 21
3
votes
0 answers

TYPO3 TCA l10n_mode exclude and MM relations

in TYPO3 v10.4.9 when I use the following tx_csdummy_domain_model_product.php TCA 'items' => [ 'l10n_mode' => 'exclude', 'config' => [ 'type' => 'select', 'renderType' => 'selectMultipleSideBySide', …
mhirdes
  • 273
  • 2
  • 12
3
votes
1 answer

TYPO3 error «action is not allowed by this plugin»

I'm trying to make an Ajax-call to my Controller. I placed a hidden link in my form like this: In my Javascript, I…
Swissdude
  • 3,486
  • 3
  • 35
  • 68
3
votes
1 answer

How to call extbase action from TypoScript

This question has been asked and answered numerous times through blogs and other platforms on the internet. However, the solutions don't seem to work for TYPO3 version 10 (I think also for versions 7, 8 and 9). I have a class SpaceController with…
John Miller
  • 527
  • 4
  • 15
3
votes
1 answer

Add button on TYPO3 backend list view

I need to add button on TYPO3 backend list view (here for example): Purpose of this button is similar to hidden button, I want to change flag Top News from 1 to 0 and from 0 to 1. I have no idea where to start, I found how hidden button working…
patryno
  • 154
  • 14
3
votes
2 answers

How to rework addAdditionalHeaderData within TYPO3 9.5

while upgrading our codebase for 9.5 i just found the old approach with using $res = $this->response; $res->addAdditionalHeaderData(''); this all happens inside an extension…
netzding
  • 772
  • 4
  • 21
3
votes
3 answers

TYPO3: Render a plugin via Typoscript or ViewHelper and change settings

I would like to load a plugin dynamically according to some data. First I tried to do it with Typoscript, but after some research I figured out, that it is not possible to change the settings of the plugin (see old forum entry). I need to change…
chris
  • 2,109
  • 2
  • 23
  • 33
3
votes
1 answer

TYPO3 FileReference repository query search through file name

I have made a 'document' model which contains a field 'file' which is a FileReference. Now im working on a repository query function that retrieves all documents containing certain string in the files name ( using $query->like() for this ). However…
user1456158
  • 841
  • 1
  • 6
  • 11