https://github.com/combodo/sample-new-attribute-type
Sample extension to add a new attribute type with its view/edit renderings
https://github.com/combodo/sample-new-attribute-type
itop itop-module itop-sample
Last synced: 12 months ago
JSON representation
Sample extension to add a new attribute type with its view/edit renderings
- Host: GitHub
- URL: https://github.com/combodo/sample-new-attribute-type
- Owner: Combodo
- License: agpl-3.0
- Created: 2023-03-13T15:28:36.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-03T14:56:15.000Z (about 1 year ago)
- Last Synced: 2025-04-03T15:44:32.016Z (about 1 year ago)
- Topics: itop, itop-module, itop-sample
- Language: PHP
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Disclaimer
This repo is no longer maintained, all the source code is still available as history.
It was made as a customization example for iTop version 3.1.
It's still monitored so if you experience some error please open an issue.
Any contribution aiming to keep this sample up to date are welcome following this [migration guide](https://www.itophub.io/wiki/page?id=latest:install:migration_notes).
Thanks for your understanding.
The iTop Team
# Sample new attribute type
This module is a demonstrator for the new field rendering extensibility added in iTop 3.1.0 (N°6041 for the user portal, N°6042 for the admin console).
What it does :
* change DateTimeField renderer to a custom DateTimeFieldRenderer
* new AttributeStringCustomField, using StringCustomField and StringCustomFieldRenderer
* new Ticket.demo_stringcustomfield field of type AttributeStringCustomField, displayed in the portal ticket-create form
All custom bootstrap renderers are using the same render method in AbstractCustomBsFieldRenderer.