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

Grid fieldtype support #60

Open
stephenmeehanuk opened this issue Dec 16, 2024 · 1 comment
Open

Grid fieldtype support #60

stephenmeehanuk opened this issue Dec 16, 2024 · 1 comment

Comments

@stephenmeehanuk
Copy link

Bug description

I've added a type: grid to my blueprint, but it's not listed in the importer?

How to reproduce

Add type: grid to a blueprint, try to import into a collection that uses the blueprint. The type: grid isn't listed?

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 11.35.0
PHP Version: 8.3.8
Composer Version: 2.6.5
Environment: local
Debug Mode: ENABLED
URL: vocal.test
Maintenance Mode: OFF
Timezone: Europe/London
Locale: en

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

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

Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.42.1 PRO

Statamic Addons
jonassiewertsen/statamic-jobs: 1.5.0
statamic/importer: 1.5.1
visuellverstehen/statamic-anchor-navigation: 1.0.0

Additional details

No response

@stephenmeehanuk stephenmeehanuk added the bug Something isn't working label Dec 16, 2024
@duncanmcclean
Copy link
Member

duncanmcclean commented Dec 16, 2024

This is intentional.

Mapping is currently disabled for some of the more complicated fieldtypes, like the Replicator and the Grid.

As they support multiple "rows", it's hard to know how to map things correctly... we'd need to figure out how to map the rows (maybe you have an array of keys in an XML file, or keys like item_1_name, item_2_name in a CSV or maybe you have a JSON column with all the rows data, that in itself needs mapped).

It's a whole can of worms and not something we could support for launch. We might add support for Grids/Replicaors in the future, so I'll re-label this issue as a "feature request".

@duncanmcclean duncanmcclean added feature request and removed bug Something isn't working labels Dec 16, 2024
@duncanmcclean duncanmcclean changed the title type: grid not showing in importer? Grid fieldtype not showing in the importer Dec 16, 2024
@duncanmcclean duncanmcclean changed the title Grid fieldtype not showing in the importer Support for Grid fieldtypes Dec 16, 2024
@duncanmcclean duncanmcclean changed the title Support for Grid fieldtypes Support for importing Grid fields Dec 19, 2024
@duncanmcclean duncanmcclean changed the title Support for importing Grid fields Grid fieldtype support Dec 19, 2024
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

2 participants