Subscribe to Acqal

Got Thoughts? Write Us!

Contact
Request
Validate

Approved TYPO3 Agency

Acqal is an approved TYPO3 agency focusing on support, training and website migration.

This means that we...

  • are available on TYPO3.org
  • make substantial contributions to TYPO3 teams
  • are registered as business members of the TYPO3 Association
  • have completed more than four TYPO3 projects
  • have proven our technical abilities with quality TYPO3 extensions
  • use TYPO3 for our own website

Acqal is a TYPO3 Association Business Member

Popular Blog Posts

Blog Topics

Virgil on Twitter

Please wait while virgilhuston tweets load Twitter is loading

Recent Blog Posts

Blog Archives

Increase TYPO3 Workspace Relation Limits

TYPO3 workspace record mount points

TYPO3 workspace record mount points

cbstarter: ext_tables.php

cbstarter: ext_tables.php
Tuesday, April 14, 2009 12:00 AM EDT

By: Michael Cannon

voting in progress Submitting your vote...
Rating: 4.0 of 5. 1 vote(s).
Click the rating bar to rate this item.

When dealing with enterprise and government websites with lots of backend users, backend usergroups, db and file mounts, and workspaces you'll find that the default maximum of 10 relations quite restrictive. By adding the following PHP code to a custom extension ext_tables.php file, you can increase the workspace record relation fields maximum to an arbitrary large number.

// increase number of workspace related backend users and backend usergroups
t3lib_div::loadTCA('sys_workspace');
$TCA['sys_workspace']['columns']['adminusers']['config']['maxitems'] = 99;
$TCA['sys_workspace']['columns']['members']['config']['maxitems'] = 99;
$TCA['sys_workspace']['columns']['reviewers']['config']['maxitems'] = 99;

// increase number of workspace related db and file mount points
$TCA['sys_workspace']['columns']['db_mountpoints']['config']['maxitems'] = 99;
$TCA['sys_workspace']['columns']['file_mountpoints']['config']['maxitems'] = 99;

Reference

Check out the extension cbstarter for more ideas on quickly reconfiguring TYPO3 defaults.

Keywords:

  • typo3,tca,workspace,config,maxitems,php

Please Share This Post

Tweet thisRedditBookmark on deliciousStumble thisShare on Facebook

Send this article via email to your friends and peers.

Leave a Comment

Add comment

* - required field







Notify me when a new comment is added.
By Dmitry Dulepov on Wednesday, December 31, 1969 9:20 PM EST
Gravatar: Dmitry Dulepov These limits are not set just "because". For example, adminuser field is varchar(255). So using too many relations will most likely overflow the field.

I would be careful when altering any default setting. They are there for a reason.
By Michael Cannon on Wednesday, December 31, 1969 9:25 PM EST
Gravatar: Michael Cannon Dimitry, thanks for the note. I hadn't looked into the database on that part yet. For some of our projects, we'll probably change that varchar to a medium text.

I've changed the samples to a more reasonable setting, to try and prevent some folks going huh.