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
3
votes
1 answer

TYPO3 call a class from controller

I wanna call a seperate Class from my Controller. The class is found under: Classes/Domain/Services I wanna call only a getter! The class I wanna call is named TestClass.php In my controller I tried: $this->view->assign('options',…
Felix
  • 5,452
  • 12
  • 68
  • 163
3
votes
1 answer

TYPO3 extBase Labels in Controller

I am using TYPO3 6.2 CMS version. I want to use dynamic labels in controller but I can't find a way. I tried with below one but it's taking to much time for…
pooja patel
  • 33
  • 1
  • 3
3
votes
1 answer

TYPO3 extbase & IRRE: add existing records with 'foreign_selector'

I "kickstarted" an extension with the extbase extension builder that contains some 1:1 and 1:n relations. It automatically set the field types to 'inline' and displayed a nice IRRE UI in the backend. But by default, there is no way to select an…
Urs
  • 4,984
  • 7
  • 54
  • 116
3
votes
4 answers

How to properly output DateTime with TYPO3 extbase fluid

I got two dateTime Objects stored in the Database: 2014-11-03 09:00:00 2014-10-21 13:45:00 When i try to output them with the ViewHelper format.date {termin.datumBeginn} I get the following…
qualle
  • 1,347
  • 3
  • 14
  • 29
3
votes
1 answer

TYPO3 Extbase extend existing extension to use the model of own extension?

I'm trying to extend the extension (news) with three extra Date (timestamp) fields and want to call these in my fluidtemplate of (news). I have wired up everything so far that i can see my extra fields in backend without selecting an extratype - i…
shida
  • 31
  • 1
  • 3
3
votes
2 answers

TYPO3 Extbase individual code on backend-deletion of an object

I would like to execute some individual code when one of my Extbase domain objects is deleted from the list view in TYPO3 backend. Thought that it could / would work by overwriting the remove( $o ) method in the according repository like public…
Falcon2014
  • 47
  • 1
  • 7
3
votes
1 answer

TYPO3-6.2 Extbase custom content type -> invalid value

I made an extbase Extension for custom content elements. Since this is my first extension I started with a simple "hello_world_ce". This are my files: ext_tables.php
3
votes
2 answers

Typo3: How to upload a file and create a file reference?

i'll try to upload a file (or later multiple files) in FE. This works, like my current code. But how can i get a file reference of this file now? /** * * @var array $fileData * @var integer $feUserId * @return…
HR123
  • 688
  • 1
  • 6
  • 15
3
votes
1 answer

Preserve arguments in uri builder

Let's say that I have a page with URI: http://mydomain.loc/index.php?id=123&by=name&dir=desc and need to add/update/remove some other param (let's name it offset) to it, so after all it will be: …
biesior
  • 55,576
  • 10
  • 125
  • 182
3
votes
3 answers

Extbase FAL file download

I have question about file download with Extbase and FAL. I can render image with I can get image, but I also have PDF file for download, and I can't use this…
smitrovic
  • 451
  • 1
  • 7
  • 23
3
votes
2 answers

Extbase Repository, findBy two parameters

Is it possible in extbase to execute two "findBy" functions at the same time. I mean, something like this : $newsRepository->findByCategory($category)->findByAuthor($author); I want to get news that have a certain category, and written by a certain…
user
  • 539
  • 1
  • 11
  • 32
3
votes
1 answer

TYPO3 extension repository truncate query

I need to clear (TRUNCATE) a database table through the repository of my TYPO3 extension. I already have various working SELECT queries. They look like this: public function getUsergroups() { $query = $this->createQuery(); …
xxx
  • 111
  • 2
  • 10
3
votes
1 answer

Repository/controller: How can I force TYPO3 to load the field "sorting"?

In a controller/template I'd like to have access to the field sorting of an entity. I've tried to access it like: $category->getSorting(); But it fails, as the method does not exist. When I dump the entity, all those meta fields, like hidden,…
lampshade
  • 2,470
  • 3
  • 36
  • 74
3
votes
1 answer

what is wrong with my $this->redirect(...) call in this code?

I have two extensions, I want to redirect from one to another in a certain action. This is my redirect code in the saveAction of my bpsmessagecontroller of my bpsmessagecentre extension: $this->redirect('list', 'Coupon', 'Bpscoupons',…
The Newbie Qs
  • 483
  • 8
  • 22
3
votes
3 answers

Getting HTML of Fluid Template in Controller Action in Typo3

How can I get HTML of a template in my Controller for a specific action. for Example if I have two actions in one controllers /** * action question * * @return void */ public function questionAction() {} /** * action Answer * * @return void …
Mohsin Khan
  • 77
  • 2
  • 8