Editors

Limitations

Only PHP Developers and Administrators are allowed to use the Editors.
For all other users, it is displayed in read-only.

Snippets editor

New snippet

Update a snippet

Snippet editor behave like the method editor.
Your modifications even if not saved are stored as draft on your browser and are retrieved even if you disconnect from the ITSM Designer and come back again later.

Snippet is a piece of PHP code which must be positionned in an existing module (or in the core by default). Due to code dependencies, the choice of the appropriate module might be critical.

Deletion of a snippet

Constants editor

Constants displayed are defined in iTop product and added Extensions.

Most of the currently displayed constants PORTAL_XXXXX are related to the old User Portal and will be removed from iTop versions 2.7.0 and above

New constant

  • A constant has a name in CAPITAL letters, which is never displayed, just used to reference the node in the XML structure
  • A constant has a Type: either a string, integer, float or boolean.
  • And a Value, aligned with its Type.

The new constant is immediately added to the list and saved.

Update a constant

  • You can directly edit any constant value
  • Your modifications are not immediately saved, you must bulk apply or cancel them
  • Later, you can still undo them as any change as long as you have not moved them to production.

You can also reset the value of a constant to its default, defined within iTop core or an extension.

Deletion of a constant

You can only delete a constant that you have created yourself in the ITSM Designer, for this use the reset icon:

But if it comes from an extension or iTop core, then you can only change it or empty it. Reset used on such constant just remove any changes you would have done to it in the ITSM Designer.

Module Parameter editor

You cannot create a new module parameter, it must be done within the Module.

Purpose

The module parameters are default values for a module, which are included in iTop Datamodel, so can be deployed and changed on multiple instances of iTop easily.

They can be overwritten manually in the Configuration file of an iTop instance, in which case, changing them in the Designer will have no effect on that instance.

Module parameters of an extension can for example defines OQL queries. A major change of the customer Datamodel may require a change in the OQL of the module parameters. Then you will need to edit them.

Select

All module parameters defined in iTop product and added Extensions are proposed in the drop-down list. Select one to edit it.

Edit

  • The editor behaves exactly as the Portal editor.
  • Don't forget the _delta=“xxx” on the tags you modify.
  • You can preview the results of your changes, then save or cancel.
  • Non-saved changes are kept as long as you use the same browser from the same machine to connect to the ITSM Designer.
latest/products/designer/editors.txt · Last modified: 2024/09/10 10:25 by 127.0.0.1
Back to top
Contact us