fields icon indicating copy to clipboard operation
fields copied to clipboard

Evo : External Link ?

Open EC2311 opened this issue 5 years ago • 2 comments

Hello

How to describe the "external link" when using a field configured in plugin "fields" ?

In documentation of GLPI image

Is it managed too? and how ?

Thanks

EC2311 avatar May 15 '19 12:05 EC2311

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

stonebuzz avatar Jan 22 '20 16:01 stonebuzz

Hello Any evolution on this topic ?

Thanks Best regards

EC2311 avatar May 06 '22 13:05 EC2311

Hi! If the topic is still relevant, then here's what I managed to find.

  1. This plugin, indeed, does not support integration with external links
  2. The solution to the problem lies in the plane of editing the code of the external links module
  3. 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 image
  4. If you create a custom field, it is also stored in the properties of the object, but in a different table image
  5. 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.
  6. All this is contained in the file %glpi_root%/src/link.php
  7. 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 image image

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.

PopovIntelkomp avatar Oct 12 '23 10:10 PopovIntelkomp

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.

stonebuzz avatar Feb 21 '24 16:02 stonebuzz