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
5
votes
4 answers

Duplicating extbase repository object

In my extbase/fluid project,in addition to standard actions such as create,delete,list etc, I want to create a duplicate of a model class object which are stored in a repository. Using findall(), all objects are displayed in a list and corresponding…
user1107888
  • 1,481
  • 5
  • 34
  • 55
5
votes
1 answer

How to pass AJAX arguments to the extbase action?

Now that I managed to get values from the database, I want to specify more what I want to be passed. From a select box that reacts to the event function below, I want to read out a value (uid of a record) and pass it to my ajaxAction: var…
user828591
  • 1,212
  • 2
  • 17
  • 32
4
votes
2 answers

typo3 4.6: get related models based on workspace

I have two tables, two models and two repositories. Sections Faqs Faqs belong in sections (one section has many faqs). This relationship is done by storing the section uid in the faq. In my templates i'm doing:
4
votes
0 answers

How to download a (large) file with a typo3 extbase controller action

I have a controller with a download action in TYPO3. For some time I have implemented it like this and it is working: function downloadAction() { // ... // send headers ... // ... if ($fh = fopen($this->file, 'r')) { while (!feof($fh))…
koalabruder
  • 2,794
  • 9
  • 33
  • 40
4
votes
4 answers

How can I trigger a download with typo3/extbase?

I'm using Typo3 with extbase and fluid. I have a Controller with an action called downloadAction(). After calling the action the system tries to render the download-template (but I just want to start a download). public function downloadAction($id)…
koalabruder
  • 2,794
  • 9
  • 33
  • 40
4
votes
1 answer

TYPO3: Symfony command with arguments AND dependency injection

I made a command in TYPO3 which has arguments and dependency injection (DI). As I understood in symfony DI is made with the __construct method. But there I also have to state the argument which I want to pass to the command. So how is it done…
Rintisch
  • 424
  • 4
  • 15
4
votes
1 answer

How to return a proper 404 error from Extbase with a error handling configuration

TYPO3 Version: 9.5.4 Goal: I want to return a 404 error from an Extbase controller with the proper status code etc. that uses the configuration for 404 error handling I set up in the site configuration. Check that 404 handling works: I setup a 404…
Florian Rachor
  • 1,574
  • 14
  • 31
4
votes
3 answers

Good practice on how to set up routeEnhancers for list and detail view of ext:news?

Precondition The ext:news list view plugin is on page www.domain.com/news [ID 9] and the detail view on www.domain.com/article [ID 39]. Following the official example (docs.typo3.org) I tried the "Extbase Plugin Enhancer" example of the feature…
Ben
  • 811
  • 12
  • 28
4
votes
3 answers

Add translation to TYPO3 Extension via Typoscript

is there a way to substitute/override the default de.locallang.xlf of the extension via Typoscript? I want to change the text of mindshape_cookie_hint in a way that will survive an update.
4
votes
2 answers

How could I add css and js files via controller initialize action and page renderer?

I am using the new page renderer from TYPO3 8 on controller level to add extension specific CSS and JS files via an initializeAction: public function initializeAction() { $extPath = ExtensionManagementUtility::siteRelPath( …
Fox
  • 623
  • 8
  • 35
4
votes
3 answers

TYPO3: Set more than one storage pid for one extension

I builded an extension that has a 'details' table that holds details with a title and a description that be included inline to another object. Right now new details are stored in the same pid as the object, but I'd like to change that. this question…
webman
  • 1,117
  • 15
  • 41
4
votes
1 answer

Extbase query to compare two fields in same table

Is it possible to compare two database fields in the query api? For example I want compare the fields tstamp and crdate like: SELECT * FROM tt_content WHERE tstamp > crdate; In the query api I could not found a solution. To get all records and…
chriwo
  • 51
  • 3
4
votes
1 answer

Typo3 7.6 extbase repository matching only affect non-localized records

I want to create an own extbase extension for TYPO3 CMS 7.6. The extension has to run in different languages. I figured out, that the repository matching does only work for me with non-localized records. My repository function looks like…
4
votes
3 answers

Flexform in typo3 7.6.2 not working

I have created a extension using extension builder in typo3 7.6.2 version. Now I would like to add flexform to extension 'Products' for detail page PID. But I tried my best to integrate flexform but it did not work. Here is my code - In…
vids1229
  • 393
  • 1
  • 3
  • 12
4
votes
1 answer

typo3 extbase: is there a way to map exec_SELECTgetRows results to entities?

I have to make a rather complicated query to my database and at it seems that extbase queries cannot do what I need (for example, I need all categories with article-count > 0). So I created a query and execute it with exec_SELECTgetRows - now, is…
Chi
  • 1,320
  • 1
  • 14
  • 48