This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

JohannGS
JohannGS

Hi everyone,

I'm triying to put a div with parallax effect in my page, the problem is that the images on a img tag doesn't show on frontend site, just a empty space with the images size. I put the img src="{{ 'assets/images/bg.jpg'}}|theme" and simple html tag img src="assets/images/bg.jpg" but it show me the same empty space. y have to do something more o just a trouble with my sentences?

Last updated

perseus.lonten
perseus.lonten

Can you try "|media" ?

JohannGS
JohannGS

trying change some css code, i find that the class .parallax img have the property display: none, when i delete this, the image show up but the parallax effect doesn't show, i am using materialize.css framework.

DMeganoski
DMeganoski

My guess is that there is a javascript error that is preventing the initialization of the parallax effect. The display:none is probably removed by JS when the library finishes loading.

Have you checked your browser's console? If there is a javascript error, it will let you know there.

JohannGS
JohannGS

thanks DMeganoski, that was the problem, i have a wrong initialization of the script in my js file. thanks a lot!!

K.Singh
K.Singh

BUILDERLIST: {% 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 %}
        {# Use spaceless tag to remove spaces inside the A tag. #}
        {% spaceless %}

              {{record.to_show}}

{% endspaceless %} {% else %}

  • {{ noRecordsMessage }}
  • {% endfor %}

    {% if records.lastPage > 1 %}

      {% if records.currentPage > 1 %}
    • ← Prev
    • {% endif %} {% for page in 1..records.lastPage %}
    • {{ page }}
    • {% endfor %} {% if records.lastPage > records.currentPage %}
    • Next →
    • {% endif %}

    {% endif %}

    MODEL: public $attachOne = [ 'to_show' => ['System\Models\File', 'public' => false] ];

    WHY NOTHING HAPPENS,NOT EVEN PATH SHOW

    1-6 of 6

    You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.