This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hello, I ran into a problem, in the Builder plugin I connect the image in this way <li style= "background-image: url( {{ record.imagefon|media }});" > but still gives an error 404 file not found although I go to the path that is specified it is there.I'm new to using October so I'm asking for help.
Here is this code block Second line {% set records = builderList.records %} {% set displayColumn = builderList.displayColumn %} {% set noRecordsMessage = builderList.noRecordsMessage %} {% set detailsPage = builderList.detailsPage %} {% set detailsKeyColumn = builderList.detailsKeyColumn %} {% set detailsUrlParameter = builderList.detailsUrlParameter %}
{% for record in records %}
<li style="background-image: url( {{ record.image|media }} );">
<div class="overlay"></div>
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-sm-12 col-md-offset-2 col-xs-12 col-md-pull-1 slider-text">
<div class="slider-text-inner">
<div class="desc">
<h2>{{ record.title2 }}</h2>
<h1>{{ record.title1 }}</h1>
<p><a href="{{ record.button }}" class="btn btn-primary btn-lg popup-vimeo"><span class="icon"><i class="icon-play3"></i></span>{{ record.text_in_button }}</a></p>
</div>
</div>
</div>
</div>
</div>
{% else %}
<p>{{ noRecordsMessage }}</p>
{% endfor %}
Last updated
The text type is assigned in the database field. In Models/Forms/Media finder Mode, there is an Image
Last updated
Here is the error from the browser: Failed to load resource: the server responded with a status of 404 (Not Found)
Here is the structure of my table https://yadi.sk/i/xtTvs6yW1aJXsQ And here is where the code block is used https://yadi.sk/i/chjBscVL_rDHOQ
Hello, :)))) The problem was where it was least expected.It turns out that the path to was incorrectly specified cms.php.Maybe it happened because of my carelessness,but still thank you for answering me and suggesting this idea
1-8 of 8