Internetagentur

Typo3 > 6.x - Page tree specific configurations


In case you have multiple page trees / domains in one installation and you don´t want to have certain features available in all page trees:

 

Backend Layouts

Hide certain Backend Layouts through Page TSConfig. So far it seems keepItems does not work for Backend Layouts. At least not in 6.2.15.

TCEFORM.pages.backend_layout.removeItems = 1,2,3,4,5,6,7,8,9,10,11,12

TCEFORM.pages.backend_layout_next_level.removeItems = 1,2,3,4,5,6,7,8,9,10,11,12


CTypes

Hide certain CTypes through Page TSConfig. This also works for custom CTypes

a) Either explicitly list the allowed CTypes

TCEFORM.tt_content.CType.keepItems = header,image,text,list,textpic,pwteaser_pi1,powermail_pi1,powermail_pi2,gridelements_pi1 

b) Or remove unwanted CTypes

TCEFORM.tt_content.CType.removeItems = header, text, textpic, image, bullets, table, uploads, multimedia, media,mailform, search, login, menu, shortcut, html, script, splash, div, list


Gridelements Layouts

You can hide certain layouts through Page TSConfig:  tx_gridelements.excludeLayoutIds = 1,3,5

 

Clear page cache of only one pagetree recursive (e.g. if footer content is changed) 

Add a PageCacheTag via Template Typoscript on the root page of the desired tree

page = PAGE
page {
    10 = FLUIDTEMPLATE
        10 {
            stdWrap.addPageCacheTags = yourCacheTag
            .....

On the page holding the footer contents add clearCache command in Page TSconfig

TCEMAIN.clearCacheCmd = cacheTag:yourCacheTag

 

Use separate upload directories for each pagetree/domain

For Typo3 6.x this is only possible on a user perspective (User TSConfig) which is not practical if there are user which have access to multiple pagetress/domains. From Typo3 7.x on this setting is also possible on a page level (Page TSConfig => review.typo3.org:

options.defaultUploadFolder = 1:user_upload_domainXYZ/uploads (targets the folder /fileadmin/user_upload_domainXYZ/uploads )