statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

thumbs not working in bard #2418

Closed Oleafeon closed 5 years ago

Oleafeon commented 5 years ago

Describe the bug I dont see images in my bard field in the cp "see screenshot 1" The images do work on the site

To Reproduce Steps to reproduce the behavior:

  1. I made a new assets using the follwing values "see screenshot 2",
  2. I made a fieldset with a bard field wich has an assets field "see code block 1"
  3. I build a collection with the fieldset bard from step 1

Expected behavior show the thumbs in the cp

Screenshots If applicable, add screenshots to help explain your problem. image screenshot 1

image screenshot 2

Environment details (please complete the following information):

Additional context

bard:
  buttons:
    - h2
    - h3
    - h4
    - h5
    - h6
    - bold
    - italic
    - underline
    - strikethrough
    - unorderedlist
    - orderedlist
    - removeformat
    - quote
    - anchor
    style: sans
    spellcheck: true
    allow_source: true
    allow_internal_links: true
    link_noopener: false
    link_noreferrer: false
    target_blank: false
    semantic_elements: false
    restrict_assets: false
    sets:
      grid:
      display: grid
      fields:
        galerij_image:
          container: grid_images
          folder: img
          restrict: false
          type: assets
          display: 'galerij image'
  type: bard
  display: Bard

code block 1

jackmcdade commented 5 years ago

The URL of the Asset Container looks wrong. Try prefixing it with a slash. If you use the control panel to set it, it will verify that it's a valid setting for you.

path: assets/img
url: /assets/img
Oleafeon commented 5 years ago

thanks that solved it