sdebacker / TypiCMS

Multilingual CMS built with Laravel 4.2
MIT License
474 stars 119 forks source link

Problem with thumbs #118

Closed hieroshima closed 9 years ago

hieroshima commented 9 years ago

Hi, I have that code whitch should show gallery with thumbs:

@foreach ($model->files as $image)
        <li class="gallery__item">
            <div class="__thumbnail">
                <a class="fancybox" href="{{ asset($image->path . '/' . $image->filename) }}" data-fancybox-group="{{ $model->slug }}">
                    {{ $image->present()->thumb(200, 200, array(), 'filename') }}
                </a>
            </div>
        </li>
    @endforeach

This showing properly link to oryginal image, but instead thumb i got 'img-not-found-200x200.png'. What i could do wrong?

sdebacker commented 9 years ago

Does $image->present()->thumbSrc(200, 200, array(), 'filename') returns the correct path ? You can var_dump the return value of getPath method in TypiCMS/app/TypiCMS/Presenters/Presenter.php to see what’s wrong.

hieroshima commented 9 years ago

Hi, Yes path is correct and i can go to this image.


Ok problem was in my hosting. I've changed public path and it works.