86 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Best practices
0
votes
1
replies
73
views
How to properly structure an aggregation pipeline builder for a product catalog (filters, sorting, pagination, min/max price)?
I’m building a product catalog API using MongoDB’s aggregation pipeline.
On the Node.js side I have a TypeScript "builder" that dynamically constructs the pipeline based on filters, sorting, and ...
1
vote
2
answers
50
views
Getting an error using Payload CMS trying to connect to MongoDB that says 'unescaped characters' in username/password but there aren't any
I am using Payload CMS with MongoDB via the Terminal in Visual Studio Code. I am trying to connect to MongoDB but keep getting this error:
Error: cannot connect to MongoDB. Details: Username contains ...
0
votes
0
answers
86
views
How to update a large number of mongodb documents in a tree structure?
I'm using mongo db with payloadcms and I have tree like structure.
We have a collection called nodes. A node have children as array and a parent id.
Now I want to change the node status like marking ...
0
votes
0
answers
57
views
How to fix DrizzleQueryError when deploying Payload Website Starter one click deployment?
I am getting this below error when using one click vercel payload deployment.
https://vercel.com/templates/next.js/payload-website-starter
All the connection strings are added properly(automatically).
...
0
votes
1
answer
105
views
Payload CMS: Internal links are not rendered correctly
i am trying to save my Lexical richText field to a lexicalHTMLField inside a payload CMS Block, but my links are not rendered correctly. All internal links are just shown as <a href="#"&...
0
votes
0
answers
51
views
Add Custom Ordered List to PayloadCMS RTE
My previous post was being closed by its own, though it's still not solving my problem
HERE
the current RTE toolbar already provide a numerical ordered list, and I want to add more (alphabetical and ...
0
votes
0
answers
82
views
Custom Toolbar in PayloadCMS RTE
I would need some help regarding creating a custom toolbar for PayloadCMS RTE.
The current version is PayloadCMS 3.49.1, and linked with @payloadcms/richtext-lexical version of 0.28.0.
My goal is to ...
2
votes
0
answers
103
views
Payload CMS - i18n not working for REST API error messages
I'm using Payload CMS with a Next.JS frontend and axios for fetching data via the provided REST API. I need i18n support for the content as well as the interface, e.g. error and validation messages.
...
1
vote
0
answers
83
views
Payload's 'first-register' Endpoint Returning 404 When Using Non-Default Collection
I've set up a payload app with two auth enabled collections - admin and students. Admin is specified in payload.config.ts as being the collection with admin panel access as shown here:
admin: {
...
0
votes
0
answers
110
views
Looking for an example of Payload 3.47 running without NextJS, if that's standard, or to know if it's non-standard
I'm new to Payload CMS, and I'm trying to use it headless. IDK what's true right now, but ChatGPT is telling me that to use Payload headless in a mono-repo with backend and frontend totally separate ...
0
votes
0
answers
42
views
Weird dropdown field at `/create-first-user` screen
I have a typical relationship between Users and Posts
Users:
export const Users: CollectionConfig = {
slug: 'users',
admin: {
useAsTitle: 'email',
},
auth: true,
fields: [
{
...
1
vote
0
answers
254
views
Can't seem to generate payloadcms types or importmaps
I'm using payloadcms in a project but i'm having issues generating types and importmaps. It says its conflicting with css files used in @payloadcms/ui.
node:internal/process/promises:394
...
0
votes
0
answers
39
views
How to mutate a nested object in the beforeChange hook in a collection?
I'm trying to mutate a nested object in the beforeChange hook of a Payload CMS collection definition:
const newContent = structuredClone(props.data.content);
const newData = await props.req.payload({....
0
votes
0
answers
52
views
Payload V2 custom view components
I'm developing with Payload a customized views inside the admin panel.
views: {
SupervisorView: {
Component: SupervisorPage,
path: '/supervisor-list',
exact: true,
},
},
I found ...
0
votes
1
answer
254
views
Payload CMS UI fields with i18n, does not accept translate function
I am trying to add payloadcms/translations from payload to my cms written with payload cms and next,
"@payloadcms/translations": "^3.42.0",
"@payloadcms/ui": &...