Difference between revisions of "Table custom"
From TUTOS
m |
(Additional info, translation, insatll,) |
||
Line 1: | Line 1: | ||
− | Database customization is handled by a file called <i>[tutoshome]/php/db/table_custom.pinc</i>. If this file exists its content will be used to query display and edit TUTOS objects. | + | Database customization is handled by a file called <i>[tutoshome]/php/db/table_custom.pinc</i>. If this file exists its content will be used to query display and edit TUTOS objects. You don't have to modify other php code. To create localization you can edit tutos/php/localization/lang_custom.p3 or <lang_id>_custom.p3 file. |
+ | |||
+ | |||
+ | To make changes happen you have to run tutos/php/admin/update.php?id=0 ) | ||
+ | |||
+ | |||
+ | |||
This feature allows to add addtional fields to a obejct. Like | This feature allows to add addtional fields to a obejct. Like | ||
Line 11: | Line 17: | ||
Currently only the following objects support custom fields. | Currently only the following objects support custom fields. | ||
* The User (people table) | * The User (people table) | ||
− | * Address | + | * Address but not for location |
* [[product|Product/Project]] | * [[product|Product/Project]] | ||
* [[Timetrack]] | * [[Timetrack]] |
Revision as of 00:15, 4 November 2005
Database customization is handled by a file called [tutoshome]/php/db/table_custom.pinc. If this file exists its content will be used to query display and edit TUTOS objects. You don't have to modify other php code. To create localization you can edit tutos/php/localization/lang_custom.p3 or <lang_id>_custom.p3 file.
To make changes happen you have to run tutos/php/admin/update.php?id=0 )
This feature allows to add addtional fields to a obejct. Like
- Selections (single and multiple)
- Float numbers
- Text fields
- Date and Time fields
Currently only the following objects support custom fields.
- The User (people table)
- Address but not for location
- Product/Project
- Timetrack
- Task
A good example is shown in the file [tutoshome]/php/db/table_custom_example.pinc