fields
fields copied to clipboard
Evo : External Link ?
Hello
How to describe the "external link" when using a field configured in plugin "fields" ?
In documentation of GLPI
Is it managed too? and how ?
Thanks
Hi @EC2311 Actually fields plugin is not compatible with external link
You can propose a PR to implement this feature, or If you want to refactor this part, please contact us here GLPI Network
Best regards
Hello Any evolution on this topic ?
Thanks Best regards
Hi! If the topic is still relevant, then here's what I managed to find.
- This plugin, indeed, does not support integration with external links
- The solution to the problem lies in the plane of editing the code of the external links module
- External links can refer to the properties of an object that is in the table (GLPI database) of such objects. Example below for "Computers" objects
- If you create a custom field, it is also stored in the properties of the object, but in a different table
- Then the most interesting thing begins. If we look at the available tags in external links (for example [LOGIN], [IP], [MAC]....), we will see that these tags do not refer to the properties of the object we need, but are properties of another. This means that somewhere in the code of the external links module, their conversion takes place.
- All this is contained in the file %glpi_root%/src/link.php
- If you create your own tags here, then you can, by analogy with the existing ones, create logic to get its value from a certain property of an object and substitute this value into an external link. Example below
I hope I got my idea right) I haven't tried it myself yet, because I'm not very good at writing such code. If someone can implement this, please share the result.
There has been no activity on this issue for some time and therefore it is considered stale
If this issue is related to a bug, please try to reproduce on latest release (GLPI and plugin). If the problem persist, feel free to open a new issue.
If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.