https://twill.io logo
Join Discord
Powered by
# ❓questions
  • h

    hazelbag

    05/25/2021, 4:13 PM
    I answered myself there
  • h

    hazelbag

    05/25/2021, 4:15 PM
    So @User then in my env do I then add my glide configs in there?
  • i

    ifox

    05/25/2021, 4:19 PM
    you can use environments variables to customize it but the default should be good as long as you add the above to your twill config. you should only need S3_ variables and
    MEDIA_LIBRARY_IMAGE_SERVICE=A17\Twill\Services\MediaLibrary\Glide
  • i

    ifox

    05/25/2021, 4:20 PM
    I'm a bit confused though because you said:
  • i

    ifox

    05/25/2021, 4:20 PM
    > I have a bunch of local images in my app that is stored in my public folder
  • i

    ifox

    05/25/2021, 4:20 PM
    did you mean S3?
  • h

    hazelbag

    05/25/2021, 4:20 PM
    Those are background images on the body, or certain pages that was created for the app template
  • i

    ifox

    05/25/2021, 4:21 PM
    ok
  • h

    hazelbag

    05/25/2021, 4:21 PM
    No they are stored in public\images\site_content
  • i

    ifox

    05/25/2021, 4:22 PM
    are you trying to use glide for those too?
  • h

    hazelbag

    05/25/2021, 4:23 PM
    No
  • h

    hazelbag

    05/25/2021, 4:26 PM
    So now the issue arises when I change the glide config, the media files I add does upload, but they do not render on in the media library, would this be something I need to amend?
  • i

    ifox

    05/25/2021, 4:28 PM
    try without any configuration in your twill.php outside of the glide snippet above, and this in your .env:
    Copy code
    MEDIA_LIBRARY_IMAGE_SERVICE=A17\Twill\Services\MediaLibrary\Glide
    S3_KEY=S3_KEY
    S3_SECRET=S3_SECRET
    S3_BUCKET=bucket-name
  • i

    ifox

    05/25/2021, 4:30 PM
    Copy code
    'glide' => [
      'source' => app(A17\Twill\Services\Cloud\Glide::class)->makeCloudSource(
         env('GLIDE_SOURCE', 'twill_media_library')
      ),
    ],
  • h

    hazelbag

    05/25/2021, 4:31 PM
    Okay, though it complains I need to add a region to the config
  • i

    ifox

    05/25/2021, 4:31 PM
    ha right
  • i

    ifox

    05/25/2021, 4:32 PM
    that's if you use the default
    s3
    disk from your laravel config
  • i

    ifox

    05/25/2021, 4:32 PM
    because the twill disk defaults to
    us-east-1
  • i

    ifox

    05/25/2021, 4:33 PM
    see https://github.com/area17/twill/blob/2.x/config/disks.php#L21
  • h

    hazelbag

    05/25/2021, 4:33 PM
    Yeah, I just updated the region on my side in the env
  • h

    hazelbag

    05/25/2021, 4:36 PM
    You sir @User are amazing!!! I owe you big time!
  • i

    ifox

    05/25/2021, 4:37 PM
    glad to hear! things are coming together?
  • h

    hazelbag

    05/25/2021, 4:41 PM
    It is yes thank you, my images render and the blocks work like magic for me.
  • d

    Dmi3yy

    05/25/2021, 5:56 PM
    Try run https://twill.io/docs/#nested-module
  • d

    Dmi3yy

    05/25/2021, 5:57 PM
    do step by step but not see how add child page https://tppr.me/GM6S3
  • i

    ifox

    05/25/2021, 6:05 PM
    create another page, you should be able to drag and drop them and also on the form there should be a parent selector in the publication sidebar
  • d

    Dmi3yy

    05/25/2021, 6:07 PM
    very not obvious 😦 I think will good add in menu: create child document
  • d

    Dmi3yy

    05/25/2021, 6:10 PM
    After reorder not saved position (
  • d

    Dmi3yy

    05/25/2021, 6:16 PM
    find where error )
  • i

    ifox

    05/25/2021, 6:17 PM
    also check this approach for nested resources https://github.com/area17/twill/issues/508
1...151617...484Latest