TSconfig

1.3.3. ->TCEMAIN

Property:

Data type:

Description:

table.[tablename]

default

->TCEMAIN_tables

Options for each table.

permissions.userid

permissions.groupid

int+

Hardcodes the default owner Backend User / Group UID of new and copied pages.

 

(The default owner is the backend user that creates / copies the record. The default user group is the "main group" of the backend user - the group in the very top of the users group-list.)

 

Example:

 

  TCEMAIN {
      # Owner be_users UID for new pages:
    permissions.userid = 2
      # Owner be_groups UID for new pages:
    permissions.groupid = 3
  }

Backend User with UID 2 is "test" and the Backend Group with UID 3 is "test_group". With the configuration above a new page would be created with this user/group setting instead of the defaults:

 


permissions.user

permissions.group

permissions.everybody

list of string/int[0-31]

Default permissions set for owner-user, owner-group and everybody.

 

Keylist: show,edit,delete,new,editcontent

Alternatively you can specify an integer from 0 to 31 indicating which bits corresponding to the keylist should be set. (Bits in keylist: show=1,edit=2,delete=4,new=8,editcontent=16)

 

Defaults from $TYPO3_CONF_VARS:

"user" => "show,edit,delete,new,editcontent",

"group" => "show,edit,new,editcontent",

"everybody" => ""

 

Example:

 

  TCEMAIN.permissions {
      # User can do anything (default):
    user = 31
      # Group can do anything 
      # (normally "delete" is disabled)
    group = 31
      # Everybody can at least see the page
      # (normally everybody can do nothing)
    everybody = show
  }

The page "Test (copy 3)" was created with the settings above for permissions. Compared to the two other pages created with default permissions you can see the effect: The Backend Group can now also delete the page by default and Everybody has read access:

 


clearCacheCmd

List of values (integers, "all", "pages")

This can allow you to have the cache for additional pages cleared when saving to some page or branch of the page tree.

 

Examples:

 

    # Will clear the cache for page ID 12 and 23 
    # when saving a record in this page:
  TCEMAIN.clearCacheCmd = 12,23

    # Will clear all pages cache:
  TCEMAIN.clearCacheCmd = pages

    # Will clear ALL cache:
  TCEMAIN.clearCacheCmd = all

clearCache_pageSiblingChildren

boolean

If set, then children of all siblings of a page being edited will have the page cache cleared.

(Default is that when a page record is edited, the cache for itself and siblings (same level) is cleared.)

clearCache_pageGrandParent

boolean

If set, then the grand parent of a page being edited will have the page cache cleared.

clearCache_disable

boolean

If set, then the automatic clearing of page cache when records are edited etc. is disabled. This also disables the significance of the two "clearCache_page*" options listed above.

translateToMessage

string

Defines the string that will be prepended to every field value if you copy an element to another language version.

 

The special string "%s" will be replaced with the language title.

Default ist "Translate to [language title]:".

 

Example:

 

  TCEMAIN {
      # Set a German label:
    translateToMessage = Bitte in "%s" übersetzen:
  }

[page:TCEMAIN]

->TCEMAIN_tables

Processing options for a $TCA configured table.

Property:

Data type:

Description:

history.maxAgeDays

int+

The number of days elements are in the history at most. Takes precedence over keepEntries.

Default is 7 days. Range 0-200. Zero turns the magAgeDays of.

disablePrependAtCopy

boolean

Disables the "prependAtCopy" feature (if configured for table in $TCA)

 

(The word "prepend" is misguiding - the "(copy)" label is appended  to (put after) the record title! Sorry for that mistake, it isn't the only time I have made that.)

 

Example:

 

  TCEMAIN.table.pages {
      # Pages will NOT have "(copy)" appended:
    disablePrependAtCopy = 1
      # Pages will NOT be hidden upon copy:
    disableHideAtCopy = 1
  }

These settings means that a page copied (say, the last page in this tree, labeled "Test") will neither have "(copy X)" appended nor be hidden.

This effect is shown in the first sub page here, labeled "Test". It appears exactly like the third page that was copied.

The page in the middle, labeled "Test (copy 3)" is the default mode where the page is hidden and the "(copy X)" suffix is added if another page with the same named existed already.

 


disableHideAtCopy

boolean

Disables the "hideAtCopy" feature (if configured for table in $TCA)

 

For example, see "disablePrependAtCopy" above.

[page:TCEMAIN.default/TCEMAIN.table.(tablename)/->TCEMAIN_tables]

To top


Valid XHTML 1.0!