[TYPO3-dev] Generating 0 page into database

Tapio Markula tapio.markula at xetpoint.fi
Fri Aug 3 10:52:39 CEST 2007


Martin Kutschker
> Use t3lib_extMgm::addPageTSConfig($conf) in ext_localconf.php. You could
> read the content of $conf from a file.

In fact I put
if($tm_contentaccessConf['defaultPageTSconfig']) { 
.$tm_contentaccessConf['defaultPageTSconfig'])
	$TYPO3_CONF_VARS['BE']['defaultPageTSconfig'] .= 
t3lib_div::getURL(t3lib_div::getIndpEnv('TYPO3_SITE_URL') 
.$tm_contentaccessConf['defaultPageTSconfig']);


I tried to add path check

  && is_file(t3lib_div::getIndpEnv('TYPO3_SITE_URL') 
.$tm_contentaccessConf['defaultPageTSconfig'])

but that failed - apparently t3lib_div::getIndpEnv('TYPO3_SITE_URL') 
should be replaced with function, which looks for server-side address.

ext_conf_template.txt

# cat=basic/other/; type=string; label= Default Page TS config: Page TS 
config for entire installation. Define file path, for example 
'fileadmin/config/config.txt'. Start the path from the siteURL.
defaultPageTSconfig =

> 
>> But it is not possible to set *multiline* configuration string!
> 
>>
>> I tried this
>>
>> TCEMAIN { permissions.userid = 8} TCEMAIN {permissions.groupid = 2 } 
>> TCEMAIN.permissions { user = 31} TCEMAIN.permissions {group = 31} 
>> TCEMAIN.permissions { group = 31 }TCEMAIN.permissions {everybody = 31 
>> } TCEMAIN.table.pages {disablePrependAtCopy = 0 } TCEMAIN.table.pages 
>> {disableHideAtCopy = 1 }
>>
>> Didn't work.
> 
> I'm sure you can add a multiline confirguration with the function call.

certainly - but it would be nice, if plugin configuration would allow 
multiline configuration. That would be easier to define than using file.
Endeed serialize/unserialize functions might have problems with 
multiline configurations.




More information about the TYPO3-dev mailing list