New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Looking for a way to crop images in cp

Julian Arnold January 27, 2021 by Julian Arnold

My Problem is, that I use Fancybox as a tool to create a slider. All I have to do is loop through a gallery with an a tag:

{{ gallery }}
<a class="fancybox" href="{{ url }}" rel="{{ group }}"></a>
{{ /gallery }}

The Problem is I cant write: href="{{ glide:url }}"

Since Fancybox is making the img tag out of it in the end it looks like this:

<div class="fancybox-placeholder" style="transform: translate(0px, 48px); 
width: 1237px; height: 822px;"><img class="fancybox-image" 

Any idea how I can fix it? Best would be in my opinion to group the folder in the CP?!

Answered by Jack McDade!
>>>>>>> Answered <<<<<<<
3 Replies