mantisbt:customizing_relationships
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
mantisbt:customizing_relationships [2007/07/29 02:13] – created vboctor | mantisbt:customizing_relationships [2018/09/07 02:47] (current) – Correct folder for Mantis >= 1.3.x, remove PHP closing tags from code atrol | ||
---|---|---|---|
Line 2: | Line 2: | ||
**Author:** Victor Boctor | **Author:** Victor Boctor | ||
+ | |||
===== Introduction ===== | ===== Introduction ===== | ||
- | Starting Mantis 1.1.0a4, it is possible to add your own custom relationships. | + | Starting Mantis 1.1.0a4, it is possible to add your own custom relationships. |
===== Customization Steps ===== | ===== Customization Steps ===== | ||
Line 11: | Line 12: | ||
==== Define Constants ==== | ==== Define Constants ==== | ||
- | Create | + | Create |
<code php> | <code php> | ||
Line 17: | Line 18: | ||
define( ' | define( ' | ||
define( ' | define( ' | ||
- | ?> | ||
</ | </ | ||
==== Define Relationship Metadata ==== | ==== Define Relationship Metadata ==== | ||
- | Create custom_relationships_inc.php in Mantis | + | Create custom_relationships_inc.php in Mantis |
<code php> | <code php> | ||
Line 32: | Line 32: | ||
'# | '# | ||
'# | '# | ||
- | '# | + | '# |
); | ); | ||
Line 41: | Line 41: | ||
'# | '# | ||
'# | '# | ||
- | '# | + | '# |
); | ); | ||
- | ?> | ||
</ | </ | ||
+ | |||
+ | Following is the documentation for the metadata structure: | ||
+ | * The array index is the relationship type ID that you define for your custom relationships. | ||
+ | * '# | ||
+ | * '# | ||
+ | * '# | ||
+ | * '# | ||
+ | * '# | ||
==== Define Custom Strings ==== | ==== Define Custom Strings ==== | ||
- | Create custom_strings_inc.php in Mantis | + | Create custom_strings_inc.php in Mantis |
<code php> | <code php> | ||
Line 59: | Line 66: | ||
$s_email_notification_title_for_action_originates_from_relationship_added = ' | $s_email_notification_title_for_action_originates_from_relationship_added = ' | ||
$s_email_notification_title_for_action_originates_from_relationship_deleted = ' | $s_email_notification_title_for_action_originates_from_relationship_deleted = ' | ||
- | ?> | ||
</ | </ | ||
+ | |||
+ | ===== Problems ===== | ||
+ | |||
+ | The legend below the graphs does not contain customized relationships (see issue [[http:// | ||
===== Acknowledgement ===== | ===== Acknowledgement ===== | ||
This feature was contributed by kratib ([[http:// | This feature was contributed by kratib ([[http:// |
mantisbt/customizing_relationships.1185689586.txt.gz · Last modified: 2008/10/29 04:31 (external edit)