extbase

TYPO3: No template was found. View could not be resolved for action

て烟熏妆下的殇ゞ 提交于 2019-12-10 15:45:44
问题 I'm experimenting a bit with TYPO3 backend modules and I'm trying to get a view when I click my module in the left menu in the backend. However when I click this I get the following message: Sorry, the requested view was not found. The technical reason is: No template was found. View could not be resolved for action "list" in class "MyVendor\MyModule\Controller\ConnectionController". I have the view for the list action in the folder Resources/Private/Backend/Templates/Connection and the file

Duplicating extbase repository object

僤鯓⒐⒋嵵緔 提交于 2019-12-10 14:27:24
问题 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 actions such as delete,edit are displayed next to each. For duplicating an object, I have created a duplicate action in the corresponding controller and here is the code: public function dupcliateAction(Tx_CcCompanylogin_Domain_Model_MyObject

Execute code upon content-changes in TYPO3

北城以北 提交于 2019-12-10 12:19:09
问题 Is it possible to notice if the content changed in the Backend and then, for example, to send a mail? In other words, can I somehow notice who modified the contents in the backend and then automatically send an email? 回答1: Yes. When content is changed in the backend, several hooks are called before and after the database operations. You can register for each of those hooks. The class you want to have a look at for the right hook is \TYPO3\CMS\Core\DataHandling\DataHandler . You can e.g.

TYPO3 6.2 - how to create FileReference in frontend (FE)?

若如初见. 提交于 2019-12-09 11:00:53
问题 I have the hypothetical Zoo extension in which I've Animal model with photo field and FrontEnd (FE) plugin with typical CRUD actions. photo field is typical FAL's FileReference and it works perfectly in backend (BE) with common TCA IRRE config. I'm able to successful upload the file to the storage, it's visible in the Filelist module, and I can use it in BE during my Animal editing, anyway I can't create FileReference within my FE plugin. My current approach looks like this: /** * @param \Zoo

How do I write a routing aspect mapper for TYPO3 9 LTS

随声附和 提交于 2019-12-08 13:03:30
I need a custom aspect mapper class, to define the value of an optional get parameter. this parameter holds an cf_cache identifier with extra data. But this parameter produces a cHash parameter what i dont need, and dont want to see in the URL's. The docs ( https://docs.typo3.org/typo3cms/extensions/core/Changelog/9.5/Feature-86365-RoutingEnhancersAndAspects.html ) says: If the requirements are too loose, a URL signature parameter ("cHash") is added to the end of the URL which cannot be removed. And also: If you really have the requirement to never have a cHash argument, ensure that all

TYPO3 CommandController: How to set table field “sorting” of Extbase Object?

五迷三道 提交于 2019-12-08 09:03:32
问题 I can't set the database field "sorting" when adding an Extbase Object to it's Repository. Other database fields are filled correctly, but somehow $this->language->setSorting(8) isn't setting the database field sorting to 8. In my case the value is always 0. My Code looks in my TYPO3 CommandController looks like this: //Inject vars /** * @var \TYPO3\CMS\Extbase\Object\ObjectManager * @inject */ protected $objectManager; /** * @var \TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager *

TYPO3: Add custom set functions in extension controller

廉价感情. 提交于 2019-12-08 08:12:52
问题 I'm creating an extension for visitors to sign up to the page. When signing up, it should create a FE user in the backend which is disabled (and will be manually enabled by an admin). So I'll need to set the disable field to 1 when creating the FE user. This is the function inside my controller: /** * action create * * @param \Vendor\FeReg\Domain\Model\Dummy $newDummy * @return void */ public function createAction(\Vendor\FeReg\Domain\Model\Dummy $newDummy) { // vars $title = $newDummy-

Update Domain Model except for one property in TYPO3 6.2

巧了我就是萌 提交于 2019-12-08 08:12:19
问题 I maintain a TYPO3 extension that manages frontend users in the backend. Therefore I extend the FrontendUserRepository with my own model. My extension provides CRUD operations and I have a problem with updating the password of existing persons. The idea is to only update the password, if the password field in the edit form is filled, otherwise (if it's left empty) the old password value remains in the database. Now everything was working fine with TYPO3 4.5, but now after I upgraded to 6.2,

Typo3 extbase json output

做~自己de王妃 提交于 2019-12-08 04:12:22
问题 I try to create controller that handles ajax requests. I found out, that I have to add this to my TS config: ajaxCall = PAGE ajaxCall { typeNum = 999 config.disableAllHeaderCode = 1 config.metaCharset = UTF-8 xhtml_cleaning = 0 admPanel = 0 10 = COA 10 < tt_content.list.20.registration_userregistration } And my controller looks like this: /** * JSONController */ class JSONController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController { /** * @var string */ protected