Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replicator not displaying field previews #10198

Closed
schwartzmj opened this issue May 24, 2024 · 2 comments
Closed

Replicator not displaying field previews #10198

schwartzmj opened this issue May 24, 2024 · 2 comments

Comments

@schwartzmj
Copy link
Contributor

schwartzmj commented May 24, 2024

Bug description

Replicator fields are not displaying field previews even with Field Previews toggled on.

Manually adding replicator_preview: true to the field's YAML causes it to work, but anytime you re-save the field this goes away.

I'm assuming the default is meant to be true (which is why it disappears) but there is some bug in the logic.

How to reproduce

Make a Replicator field type and use it.

Logs

No response

Environment

Environment
Application Name: [redacted]
Laravel Version: 11.7.0
PHP Version: 8.3.1
Composer Version: 2.6.6
Environment: local
Debug Mode: ENABLED
URL: localhost
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: 2
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.5.0 PRO

Statamic Addons
jacksleight/statamic-bard-ipsum: 1.0.1
spatie/statamic-responsive-images: 5.0.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

@sunscreem
Copy link

I've just updated to Statamic 5 and I'm having the same issue on a custom field I've made.

    computed: {
        replicatorPreview() {
            return 'test';
            }
     }

This seems to be being ignored.

I'm wondering if it's related to #9353

@duncanmcclean
Copy link
Member

This seems to be fixed on the latest version of Statamic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants