I had created a field called tv_adbackground on the settings filed to be a ble to uplaod a background image.
The upload works great!
How to get the path of the file or the image style medium or thumbinal in to a twig template like this?
...
<div id="advertisement"> <!-- background-image uploaded on theme settings page should be used here ->
<div id=advertisement-dimmer>
<h3 class="adheading">{{ tv_adheading }}</h3>
<div id="admessage">{{ tv_admessage }}
<div class="btn-group adbuttons" role="group" aria-label="Basic
example">
<button type="button" class="btn btn-primary btn-lg"><a
style="color:#fff;" href="/signup">Register</a>
</button>
<button type="button" class="btn btn-default btn-lg"><a
href="/user/login">Login</a></button>
</div>
</div>
I would use css to retrive thte image path but with css i dont get teh variable to get the file path.
I am new to drupal 8 so it would be great if there will be anyone to help