3D FlipBook - Error asset not found in Laravel Application

r***o@sdbagency.com
2020-10-09
2020-10-13

Hi, I have issues with the asset directory, why the 3d flipbook detects the URL wrongly. For example, my asset folder is on the public root directory, should be accessed like www.domain.com/css/black-book-view.css. But the 3d flipbook detects my URL entirely, for example, I want to make the 3d flipbook on the portfolio page, so the URL is www.domain.com/portfolio, and the 3d flipbook searches the asset in www.domain.com/portfolio/css/black-book-view.css, etc inside of the portfolio URI, which is wrong and the file is not found. The question is how can I change the URL directory? I cannot use this in Laravel application

Replies

r***o@sdbagency.com
2020-10-09
2020-10-09

My question is, how to custom the path of the files assets?

r***o@sdbagency.com
2020-10-09
2020-10-13
            template: { // by means this property you can choose appropriate skin
                html: "{{ asset('templates/default-book-view.html') }}",
                styles: [
                    "{{ asset('css/black-book-view.css') }}"// or one of white-book-view.css, short-white-book-view.css, shart-black-book-view.css
                ],
                links: [{
                    rel: 'stylesheet',
                    href: "{{ asset('css/font-awesome.min.css')}}"
                }],
                script: "{{ asset('js/default-book-view.js') }}",
                printStyle: undefined, // or you can set your stylesheet for printing ('print-style.css')
                sounds: {
                    startFlip: "{{ asset('sounds/start-flip.mp3') }}",
                    endFlip: "{{ asset('sounds/end-flip.mp3') }}"
                }
            },

it's fixed by reading the documentation properly, sorry for my bad and thank you very much.

Log In to leave a comment