We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47432
    • 48 Posts
    something goes wrong but i don't know what, i' ve done everything you said
    but when i try to add an image, i can see it with firebug:

    .slide1 {
        background-image: url("../lighthouse.jpg");

    and it said: "failed to load the given url"
      • 4172
      • 5,888 Posts
      ok, the image-url is now not longer relative to the CSS-file

      you will need to alter the path to your images-directory.
      Where do you have your slider-images stored?










        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 47432
        • 48 Posts
        assets/templates/seen/images
          • 4172
          • 5,888 Posts
          try

           background-image: url('assets/templates/seen/images/[[+image]]');


          or

           background-image: url('[[++site_url]]assets/templates/seen/images/[[+image]]');
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 47432
            • 48 Posts
            this 2 path were not working, but looking with firebug i have found the solution smiley

            .slide[[+idx]] {
              background-image: url('[[++site_url]]/[[+image]]');  
            }
            (no need of the other ss rules, they stay in the css file.

            Well i thin it's time to buy you a beer smiley))

            just another question, i think to use migx for the quotes areas (same thing with bg css images), but as they in 3 different places, i suppose i have to make the imagelist call in the 3 different places, and have i to make 3 differents tv ?

            And also for the works section (they also have bg css images) is it better to do it with getresources or migx (i think getresources,but again i have to find the way to get my bg img css changed)
              • 47432
              • 48 Posts
              I just saw your message about getresources and try that:
              [[getResources? &parents=`[[*id]]` &includeContent=`1` &tpl=`@INLINE [[+content]]`]]


              but don't work :-(
                • 4172
                • 5,888 Posts
                Quote from: alexadark at May 05, 2014, 09:56 AM
                I just saw your message about getresources and try that:
                [[getResources? &parents=`[[*id]]` &includeContent=`1` &tpl=`@INLINE [[+content]]`]]


                but don't work :-(

                Do you have any children under that Resource?
                Are they published and not hidden from menu?
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 4172
                  • 5,888 Posts
                  Quote from: alexadark at May 05, 2014, 09:36 AM
                  this 2 path were not working, but looking with firebug i have found the solution smiley

                  .slide[[+idx]] {
                    background-image: url('[[++site_url]]/[[+image]]');  
                  }
                  (no need of the other ss rules, they stay in the css file.

                  Well i thin it's time to buy you a beer smiley))

                  just another question, i think to use migx for the quotes areas (same thing with bg css images), but as they in 3 different places, i suppose i have to make the imagelist call in the 3 different places, and have i to make 3 differents tv ?

                  And also for the works section (they also have bg css images) is it better to do it with getresources or migx (i think getresources,but again i have to find the way to get my bg img css changed)

                  Isn't there another way to show the images with <img > - tags?
                  This would simplify things.
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 47432
                    • 48 Posts
                    there is no children under this resources and they are all published and not hidden from menus (only the home one, who correspond to the slider, and it's the only one that works)

                    i had 2 migx tv for the 2 quotes areas, 2 chunks for fore bg img css, but only one chunk for the quote tpl, as it the same, it's strange because it displays 2 different quotes, but only 1 image (and i have load 2 differents for each quote.

                    For the works part, it's easier to have the img as bg, as i can have the overlay div in normal positionning, if i put img i have to put the overlay div in position absolute
                      • 4172
                      • 5,888 Posts
                      I know, inline-style is not the best practice, but might be an option in this case.

                      Under which Resource (thd id) are the sections, which you want to show the content with getResources
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!