add base url before field text content I have a text field used to enter a code (like 1111). This code is linked to a file (image) hosted in another server.

When a user displays this content type, I want to automatically display 3 things :

*the field content with the code (1111 for exemple) (I know how to do it)


a picture whose url will always be : www.url.com/FIELD_CONTENT.jpg (www.url.com/1111.jpg)
a link to the picture


Is it possible to do that ?

D8 but i can create a D7 website if needed.
You can render your image with a render array like this:

$a = array('#theme' =&gt; 'image',
        '#uri' =&gt; 'http://www.url.com/'.FIELD_CONTENT.'.jpg',
        '#alt' =&gt; 'Whatever',
    );


If you want that to be the content of an A tag (the link to press), render the link like this:

Link::createFromRoute($a, routename)-&gt;toString()


Is this what you need?