Replies: 6 comments 16 replies
-
Beta Was this translation helpful? Give feedback.
-
Also what is the logic for this? It seems like insanity to put every filter in a url? I wouldn't want anyone to see any of that - ever |
Beta Was this translation helpful? Give feedback.
-
Hey hey, You can exclude fields from the admin filter with disableListFilter (https://payloadcms.com/docs/fields/overview#admin-options) There is an option to store and share filter presets (https://payloadcms.com/docs/query-presets/overview) Also you can try the defaultColumns option (https://payloadcms.com/docs/fields/join#admin-config-options) And there is also a baseListFilter option to preFilter the items in the admin overview Example: const Events: CollectionConfig = {
slug: 'events',
admin: {
defaultColumns: ['title', 'eventStart', 'eventEnd', 'type', 'location'],
baseListFilter: async () => { // Return an Where object
return {
parent: {
equals: null,
}
}
}
},
.... (etc) It's also good practise to check if you really need every value you're importing. Maybe you can share the config of the media collection? |
Beta Was this translation helpful? Give feedback.
-
The issue is that if I do a simple thing like click on an image to update it's ALT tag - my url turns into this which is ridiculous... IN the url browser??? I don't want all that in my browser url - that is ridiculous.... |
Beta Was this translation helpful? Give feedback.
-
I must just be missing something so obvious - it's designed to do this well - |
Beta Was this translation helpful? Give feedback.
-
Just loading the media page, no problem GET /admin 200 in 192ms GET /admin/collections/media 200 in 1085ms GET /api/tags?depth=0&limit=250&where%5Bid%5D%5Bin%5D=2%2C21%2C39 200 in 165ms I am watching in terminal then I click filters... so before I even choose anything - just clicking Filters this happens... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I know there is a work around for this - Payload 3+ is too advanced for this not to be true - but I haven't found it yet and am in critical mission timing. I just migrated from Wordpress. It's been an absolute nightmare to migrate. Has literally taken 2 weeks and have just given up on missing data, will have to manually re-create. Mind you I am not a coder and brand new to Payload. My current issue is that when I load a collection - Media or other - it shoves it all into the url and crashes everything. I love the filters - I'm coming from Wordpress Admin Colums Pro - I want an admin interface that lets me filter, see all my data, see only some of my data, etc. - but all of it in the url is madness. How do I stop that? It has crashed my browser 1000 times now. I know there is a smart way to do it - I just don't know what or how and not sure what to even search to learn more. Any advice much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions