TYPO3 8.7.x hide some tt_content fields - typo3

Was solution for tt_content Overrrides here http://p.cweiske.de/243, looks like
$GLOBALS['TCA']['tt_content']['columns']['date']['displayCond'] = 'FIELD:CType:!=:fluidcontent_content';
wich hide date or other fileds from tt_content in backend. In TYPO3 8.7.x this approach doesn't work anymore. I Checked displayCond still exist https://docs.typo3.org/typo3cms/TCAReference/Columns/Index.html#displaycond.
Seems to be a problem in Overrides. In my case it was just file myext/Configuration/TCA/Overrides/tt_content.php.
Looks like system does not load this any more. Could somebody help?

Related

Reading data out of a flexform in typoscript

I try to read a flexform data out in typoscript. I tried it with several approaches, but none of them works correctly:
ajax.30 = TEXT
ajax.30.value = {$plugin.parser.settings.maxNumber}
ajax.40 < {$plugin.parser.settings.maxNumber}
ajax.50 < {$plugin.parser.settings.maxNumber}
ajax.60 = TEXT
ajax.60.data = {$field:flexform_varNum}
ajax.70 = TEXT
ajax.70.data = flexform : pi_flexform:settings.varNum
Can anyone give me a hint for the right syntax?
I'm using Typo3 9.5.13.
It is not possible to read out FlexForm data without an actual content element.
The CONTENT or COA objects would provide that. See for example Get FlexForm configuration in TypoScript
The feature was added in TYPO3 8.4 https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.4/Feature-17309-AccessFlexformValueViaTS.html

TYPO3 Extension ke_search, dont index my tt_content fluidcontent

I can't figure out why ke_cearch does not index my content elements
Prompt if someone came across.
http://prnt.sc/mr8qs9
enter image description here
myconfig
http://prnt.sc/mr8umx
But defolt fluidcontent texrmedia or text indexes great
You have to write a custom indexer for this.
Take a look here: https://www.typo3-macher.de/en/facetted-search-ke-search/documentation/write-your-own-custom-indexer/

Import from tt_news with additional fields in tt_news and news (TYPO3 8 LTS)

import from tt_news in TYPO3 8 LTS with actual news and news_ttnewsimport is working fine. But we had some individual fields in tt_news and i want to import theese fields too in individuel fields in news.
So i made a new extension which extends news with individual fields. It is working fine: i can edit them in the backend and print content in the frontend.
Then i modified getImportData() in TTNewsNewsDataProviderService of news_ttnewsimport and added my new fields. The content of the individual fields of tt_news is fetched, i controlled it with a log-file. But the content was not written in the database ... I controlled the getter and setter in my configuration of news but all seems correct.
After some debugging i found that all commands which write the content in news are hardcoded in news/Classes/Domain/Service/NewsImportService.php:
$news->setAuthor($importItem['author']);
After adding my fields all works:
$news->setMyNewField($importItem['my_new_field']);
So my problem is fixed ... well some how: it seems dirty to change a class of an extension in order to handle individual fields.
Is there a correct possibility to make the import work with individual fields, without patching news?
Thanks!
In version 7 of tx_news i found the answer of my question ... i don't know wether it exists in older versions but in 7.1 it is possible to use a signal slot for this task:
link to the manual: Prehydrate slot

TYPO3: Upload files to FAL with powermail

I am using powermail to allow a FE-User to edit a couple of fields of his own User-Record. Works fine, no hassle.
Now I would also like to allow the upload of a file. Is there a way to save the file to FAL with powermail? Unfortunately I have found no resources on this whatsoever. Maybe it is possible to implement a userfunc when saving to DB that would generate the required DB entries? When using powermails "upload"-field-type the file gets written to uploads/tx_powermail. I have access to that files path in my db_entry step in typoscript and could pass it on to a userfunc - which in return should
generate the sys_file entry
delete a possiblibly already existing sys_file_reference
generate the new sys_file_reference
Am I missing something?
Any ideas on this? Has anyone done something like this before?
Or is my only alternative to switch from powermail to a custom extbase extension?
System: TYPO3 7.6.16, Powermail 3.17
Thanks
I have same problems in powermail and i use powermail Finisher class like below.
TYPOSCRIPT:
plugin.tx_powermail.settings.setup {
finishers {
1 {
class = Vendor\Ext\Finisher\AddImageFinisher
config {
# set pid.
pid = TEXT
pid.value = 79 // Here
#set powermail fields title
field_name = Name
field_place = Place
field_email = E-Mail
field_message = Message
}
}
}
}
Please reffere this link. AddImageFinisher Class file
At the moment powermail don't uses FAL relations. If you need something like this, you have to add an own finisher that does the upload stuff - see https://docs.typo3.org/typo3cms/extensions/powermail/ForDevelopers/AddFinisherClasses/Index.html
Just for the record. TYPO3 8 core ships a new form extension which allows both. With the save to database finisher you can easily edit fe_user data. Furthermore, all image uploads are handled as FAL. We will document this use case and release a small extension which does the job (soon).

TYPO3 Content Element in TYPO3 6.0.1

I use the Content Element in my Typoscript. The take a Image from a Folder. I mad this 1000 times in older TYPO3 Versions.
This is mi Code
lib.test = CONTENT
lib.test{
table = tt_content
select{
uidInList=4
pidInList=2
}
}
The Folder ID's are correct.
I mapped the test with Templavoila in a div(inner)
We've had the same issue and ported back to Typo3 4.7.x. TemplaVoila and also a lot other extensions still have problems working correctly in 6.x
Try below one;
lib.logo = RECORDS
lib.logo{
tables = tt_content
source = 123 #Respected Content Element ID
}