[TYPO3-dev] Generating 0 page into database
Tapio Markula
tapio.markula at xetpoint.fi
Thu Aug 2 19:10:37 CEST 2007
Martin Kutschker kirjoitti:
> Tapio Markula schrieb:
>> Hi
>>
>> Would it be possible that typo3 would generate always 0 page into
>> database.
>> That would be needed to set page TS config for entire installation.
>
> You can use [BE][defaultPageTSconfig] and perhaps add configurations to
> it via t3lib_extMgm::addPageTSConfig($conf) from an extension.
>
> Masi
If I set directly $TYPO3_CONF_VARS['BE']['defaultPageTSconfig'] that
would not be satisfactory, because I should edit source code.
Because I can't set any TS config for the page '0' I can't use
TypoScript in TS config for pages or in some TS template to define this
issue.
TS config for users/user groups doesn't work inside ext_localconf.php
because user information is not available.
That would not work.
ext_conf_template.txt could in theory be set the config and use in
ext_localconf.php
$TYPO3_CONF_VARS['BE']['defaultPageTSconfig']=$EXTKEY['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.
More information about the TYPO3-dev
mailing list