[TYPO3-mvc] setRespectEnableFields without function?

Johannes C. Schulz - EnzephaloN IT-Solutions info at enzephalon.de
Fri Nov 16 09:24:58 CET 2012


Hello Henjo

My TCA ctrl looks like this:
$TCA['tx_enzteaserlist_domain_model_teaseritem'] = array(
	'ctrl' => array(
		'title'						=>
'LLL:EXT:enz_teaserlist/Resources/Private/Language/locallang_db.xml:tx_enzte
aserlist_domain_model_teaseritem',
		'label'						=> 'title',
		'tstamp'					=> 'tstamp',
		'crdate'					=> 'crdate',
		'versioningWS'				=> 2,
		'versioning_followPages'	=> TRUE,
		'origUid'					=>
't3_origuid',
		'languageField'				=>
'sys_language_uid',
		'transOrigPointerField'		=> 'l18n_parent',
		'transOrigDiffSourceField'	=> 'l18n_diffsource',
		'dividers2tabs'				=>	true,
		'delete'					=>
'deleted',
		'enablecolumns'				=> array(
			'disabled'		=> 'hidden'
		),
		'dynamicConfigFile'			=>
t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Teaseritem.php',
		'iconfile'					=>
t3lib_extMgm::extRelPath($_EXTKEY) .
'Resources/Public/Icons/tx_enzteaserlist_domain_model_teaseritem.gif'
	)
);

So I have to add:
'starttime'	=> 'starttime'.
'endtime'	=> 'endtime',

??

Meanwhile I added a $query-request to my repo. This also works ;-)

Johannes

-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Henjo Hoeksma
Gesendet: Freitag, 16. November 2012 01:44
An: TYPO3 v4 MVC project
Betreff: Re: [TYPO3-mvc] setRespectEnableFields without function?

Hi Johannes,

check your ext_tables.php for the TCA['ctrl'] for that table.
Enablefields can be defined there.

Henjo

On Nov 15, 2012, at 8:23 AM, "Johannes C. Schulz - EnzephaloN IT-Solutions"
<info at enzephalon.de> wrote:

> Hello Henjo
> 
> Some strange: The "hidden"-value works, but not the 
> starttime/endtime-values.
> 
> Are there changes these fields in extbase?
> 
> Johannes
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
> [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag 
> von Henjo Hoeksma
> Gesendet: Mittwoch, 14. November 2012 21:53
> An: TYPO3 v4 MVC project
> Betreff: Re: [TYPO3-mvc] setRespectEnableFields without function?
> 
> Hi Johannes,
> 
> if you use that, the other ones should still be applied - so only 
> setting the setRespectStorageFolder(FALSE) should suffice.
> 
> Kind regards,
> 
> Henjo
> 
> On Nov 14, 2012, at 8:37 PM, "Johannes C. Schulz [EnzephaloN
IT-Solutions]"
> <info at enzephalon.de> wrote:
> 
>> Hello
>> 
>> I have respectStorageFolder on false, so I think I have to use
> setRespectStorageFolder. Or I'm wrong? 
>> 
>> Viele Grüße
>> Johannes C. Schulz -  EnzephaloN IT-Solutions (von unterwegs 
>> gesendet)
>> 
>> 
>> 
>> Henjo Hoeksma <me at henjohoeksma.nl> schrieb:
>> 
>>> Hi Johannes,
>>> 
>>> default behaviour is that enableFields will be respected.
>>> So I you don't have anything else overruled, you should be fine by 
>>> removing these statements.
>>> 
>>> Kind regards,
>>> 
>>> Henjo
>>> 
>>> On Nov 14, 2012, at 2:30 PM, "Johannes C. Schulz - EnzephaloN 
>>> IT-Solutions" <info at enzephalon.de> wrote:
>>> 
>>>> Hi extbase-fans
>>>> 
>>>> 
>>>> 
>>>> Some of my first extbase-extensions now makes trouble. It was 
>>>> written
>>> under
>>>> 4.5.x and now runs under 4.7.x.
>>>> 
>>>> The extension-items have fields for starttime and endtime. The
>>> repository
>>>> has setRespectEnableFields(true), but now-inactive items are
>>> displayed in
>>>> frontend.
>>>> 
>>>> Are there changes about using fields for starttime/endtime in the
>>> past??
>>>> 
>>>> 
>>>> 
>>>> Best regards
>>>> 
>>>> Johannes
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> TYPO3-project-typo3v4mvc mailing list 
>>>> TYPO3-project-typo3v4mvc at lists.typo3.org
>>>> 
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v
>>> 4mvc
>>> 
>>> _______________________________________________
>>> TYPO3-project-typo3v4mvc mailing list 
>>> TYPO3-project-typo3v4mvc at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v
>>> 4mvc
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list 
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4
>> mvc
> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4m
> vc
> 
> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4m
> vc

_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc




More information about the TYPO3-project-typo3v4mvc mailing list