Bug #15855

TCEFORM.tt_content.CType.removeItems not applied to db_new_content_el.php

Added by Oliver Hader about 14 years ago. Updated almost 14 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


The following value defined in TSconfig of any page is not applied to db_new_content_el.php:
TCEFORM.tt_content.CType.removeItems = html,div,text

If I select "New Content Element" at Web>Page the wizard shows icons of removed items. On selecting a denied item the next page tells me '[INVALID VALUE ("html") ]' at the pull down menu of "Type".

In typo3/sysext/cms/layout/db_new_content_el.php is a function removeInvalidElements(&$wizardItems) which should additionally check the TSconfig of the current page and - if necessary - remove the denied CTypes.

If I'm wrong, please let me know.

(issue imported from #M2918)

db_new_content_el_original.png View (29.2 KB) Administrator Admin, 2006-03-19 15:37

db_new_content_el_modified.png View (11.1 KB) Administrator Admin, 2006-03-19 15:37

db_new_content_el.php.diff View (381 Bytes) Administrator Admin, 2006-03-19 15:37

db_new_content_el_2.php.diff View (1.37 KB) Administrator Admin, 2006-03-20 16:59


#1 Updated by Oliver Hader about 14 years ago

Okay, I had some time to fix the problem and added some lines to the function removeInvalidElements(&$wizardItems) in the file typo3/sysext/cms/layout/db_new_content_el.php

The image db_new_content_el_modified.png shows the changes after modifying page TSconfig to the following value:
TCEFORM.tt_content.CType.removeItems = bullets,table,uploads,multimedia,menu,html,mailform,search,login

I found another itsy-bitsy bug on removing unused headers and corrected it in the diff-file added to this post.

#2 Updated by Michael Stucki about 14 years ago

That patch has no effect on my installation?

#3 Updated by Oliver Hader about 14 years ago

However, it seems that I always use "Create new record in top of this column" in the Backend and didn't test the other buttons above.
I changed $this->uid_pid to $this->id and now it should work - see db_new_content_el_2.php.diff

#4 Updated by Martin Kutschker about 14 years ago

What other buttons? I have tested the "new" icons in Web>page and the "new" entry of the page tree. Works for both methods correctly.

#5 Updated by Martin Kutschker about 14 years ago

Fixed in CVS.

Also available in: Atom PDF