cms icon indicating copy to clipboard operation
cms copied to clipboard

Asset preview on Taxonomies list

Open emran-alhaddad opened this issue 1 year ago • 3 comments

Bug description

The image preview should shown instead of the json value

see the attached image for full underestanding

image

How to reproduce

make taxonomy and add asset field to it then add new taxonomy

Logs

No response

Environment

latest statmic version

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

None

Additional details

No response

emran-alhaddad avatar Feb 06 '24 08:02 emran-alhaddad

This seems to be working fine for me.

CleanShot 2024-02-08 at 17 26 53

Can you provide the output of php please support:details and the blueprint for your Products taxonomy?

duncanmcclean avatar Feb 08 '24 17:02 duncanmcclean

Thanks for waiting to my response , appreciate that

this is the output of php please support:details

Environment Application Name: Juthor Laravel Version: 10.43.0 PHP Version: 8.2.14 Composer Version: 2.5.5 Environment: production Debug Mode: ENABLED URL: juthor-cms.brackets-tech.com Maintenance Mode: OFF

Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: CACHED

Drivers Broadcasting: log Cache: statamic Database: mysql Logs: stack / single Mail: smtp Queue: sync Session: file

Statamic Addons: 1 Antlers: runtime Stache Watcher: Enabled Static Caching: Disabled Version: 4.47.0 PRO

Statamic Addons statamic/eloquent-driver: 3.0.4

Statamic Eloquent Driver Asset Containers: eloquent Assets: eloquent Blueprints: eloquent Collection Trees: eloquent Collections: eloquent Entries: eloquent Forms: eloquent Global Sets: eloquent Global Variables: eloquent Navigation Trees: eloquent Navigations: eloquent Revisions: eloquent Taxonomies: eloquent Terms: eloquent

emran-alhaddad avatar Feb 14 '24 11:02 emran-alhaddad

Thanks. Can you share your taxonomy's blueprint too?

duncanmcclean avatar Feb 14 '24 11:02 duncanmcclean

this is the taxonomy

id handle title sites settings created_at updated_at 1 products Products ["english","arabic"] {"revisions":false,"preview_targets":[{"id":"8YmbROb1","label":"Term","format":"{permalink}","refresh":true}]} 2024-02-06 08:30:50 2024-02-06 08:31:34

This is one of the terms id site slug uri taxonomy data created_at updated_at 1 english facial /products/facial products {"icon":{"icon_image":"uploads/images/home/product-icon-1.svg"},"type":"none","image_media":{"image":null},"video_media":{"video":[]},"title":"Facial","description":[{"type":"paragraph","content":[{"type":"text","marks":[{"type":"bold"}],"text":"Reel width: min 40 cm, max 271 cm"},{"type":"hardBreak","marks":[{"type":"bold"}]},{"type":"text","marks":[{"type":"bold"}],"text":"Reel diameter : min 115 cm, max 260 cm"}]},{"type":"paragraph"},{"type":"paragraph","content":[{"type":"text","text":"Basis weight: 13 - 15.5 gsm "},{"type":"hardBreak"},{"type":"text","text":"Ply: 2,3"}]}],"updated_by":"9b412819-a8a3-4735-8f9c-cbea25180cf6","updated_at":1707208876,"blueprint":"product"} 2024-02-06 08:41:16 2024-02-06 08:41:16

emran-alhaddad avatar Mar 03 '24 09:03 emran-alhaddad

Thanks! What does the taxonomy's blueprint look like? Can you share the contents of its YAML file?

duncanmcclean avatar Mar 04 '24 10:03 duncanmcclean

I'm still not able to reproduce this issue on the latest version of Statamic, even alongside the Eloquent Driver.

I'm going to close this issue now. If you're still experiencing this issue on the latest version, please provide the relevant blueprint and we can take another look. Thanks!

duncanmcclean avatar Mar 26 '24 18:03 duncanmcclean