[TYPO3-english] How to hide fields in BE forms from extensions for all users ?

Christoph Stadler christophe at stadler.com
Tue Nov 30 21:13:40 CET 2010


the file that is edited when i click the 'Write to configureation' 
button is typo3conf/extTables.php

so even after editing out the fields i don't want to see and writing the 
new setup into extTables and cleaning caches i still see those fields in 
the back end

On 11/30/10 9:08 PM, Christoph Stadler wrote:
> Thanks for your help Tomas,
>
> i have tried to use tcamanipulate but cannot figure it out, there is not
> much in the documentation to help ... as i understand you have to
> install the extension and then use the user page TSconfig ? WHat would
> be the syntax for hding those fields ?
>
> just to clarify my first message, i modified the TCA by going to the
> Configuration backend module, selected $TCA from the popup, and then
> navigated my way to the field i was looking for. Following your
> suggestion i have modified the values [0] and [1] in the Types section.
> Here is the extTables.php file that is generated by typo3 after i
> clicked the 'Write to configuration' button:
> <?php
> /**
> * Overriding $TCA
> *
> * The TYPO3 Configuration Array (TCA) is defined by the distributed
> tables.php and ext_tables.php files.
> * If you want to extend and/or modify its content, you can do so with
> scripts like this.
> * Or BETTER yet - with extensions like those found in the typo3conf/ext/
> or typo3/ext/ folder.
> * Extensions are movable to other TYPO3 installations and provides a
> much better division between things! Use them!
> *
> * Information on how to set up tables is found in the document "Inside
> TYPO3" available as a PDF from where you downloaded TYPO3.
> *
> * Usage:
> * Just put this file to the location typo3conf/extTables.php and add
> this line to your typo3conf/localconf.php:
> * $typo_db_extTableDef_script = 'extTables.php';
> */
>
> // Rotate loginbox images from this directory
> # $GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder'] =
> '../fileadmin/loginimg/';
>
> // Raise upload limit for images in 'image' content-elements to 10*1024
> bytes = 1MB
> #
> $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size']
> = 10*1024;
>
> // Changes date fields to datetime fields in pages and tt_content
> #
> $GLOBALS['TCA']['tt_content']['columns']['starttime']['config']['eval']
> = 'datetime';
> # $GLOBALS['TCA']['tt_content']['columns']['endtime']['config']['eval']
> = 'datetime';
> # $GLOBALS['TCA']['pages']['columns']['starttime']['config']['eval'] =
> 'datetime';
> # $GLOBALS['TCA']['pages']['columns']['endtime']['config']['eval'] =
> 'datetime';
> $GLOBALS['TCA']['tx_realty_objects']['types']['0']['showitem'] =
> 'sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1,
> object_number, openimmo_anid, openimmo_obid, object_type, utilization,
> title;;;;2-2-2, emphasized, sorting, show_address;;;;2-2-2,
> number_of_rooms, living_area, total_area, estate_size,
> rent_excluding_bills, extra_charges, heating_included, deposit,
> provision, usable_from, apartment_type, house_type, floor, floors,
> bedrooms, bathrooms, heating_type, has_air_conditioning, garage_type,
> garage_rent, pets, construction_year, old_or_new_building, state,
> balcony, garden, elevator, barrier_free, assisted_living,
> fitted_kitchen, has_pool,
> has_community_pool,teaser;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_realty/rte/],
> description;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_realty/rte/],
> equipment;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_realty/rte/],
> layout,
> location;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_realty/rte/],
> misc;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_realty/rte/],
> details_page, images, language, currency,
> exact_coordinates_are_cached;;2, rough_coordinates_are_cached;;3,
> advertised_date;;;;2-2-2';
> $GLOBALS['TCA']['tx_realty_objects']['types']['1']['showitem'] =
> 'sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, hidden;;1,
> object_number, openimmo_anid, openimmo_obid, object_type, utilization,
> title;;;;2-2-2, emphasized, sorting, show_address;;;;2-2-2,
> number_of_rooms, living_area, total_area, estate_size,
> rent_excluding_bills, extra_charges, heating_included, deposit,
> provision, usable_from, apartment_type, house_type, floor, floors,
> bedrooms, bathrooms, heating_type, has_air_conditioning, garage_type,
> garage_rent, pets, construction_year, old_or_new_building, state,
> balcony, garden, elevator, barrier_free, assisted_living,
> fitted_kitchen, has_pool,
> has_community_pool,teaser;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_realty/rte/],
> description;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_realty/rte/],
> equipment;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_realty/rte/],
> layout,
> location;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_realty/rte/],
> misc;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_realty/rte/],
> details_page, images, language, currency,
> exact_coordinates_are_cached;;2, rough_coordinates_are_cached;;3,
> advertised_date;;;;2-2-2';
> ?>
>
> On 11/30/10 8:34 PM, Tomas Mrozek wrote:
>> Alright... now I get it. You modified the extension itself.
>>
>> Well, first of all, you should not modify the extension itself as you
>> will create troubles for yourself or someone else administering the
>> website once you need to update the extension (and you forget that you
>> have done some changes). It's better to use some extension for
>> modification. Try "tcamanipulate". I'm creating a new extension for $TCA
>> manipulation but it's not public yet.
>>
>> Secondly, you should modify...
>>
>> $TCA['tx_realty_objects']['types']['0']['showitem']
>>
>> ...and...
>>
>> $TCA['tx_realty_objects']['types']['1']['showitem']
>>
>> Tomas Mrozek
>



More information about the TYPO3-english mailing list