fix: resolve contact form placeholders, restore process block layout, and fix testimonials carousel scroll logic
This commit is contained in:
@@ -4,24 +4,13 @@ import configPromise from '../src/payload.config'
|
||||
async function run() {
|
||||
const payload = await getPayload({ config: configPromise })
|
||||
|
||||
const plPage = await payload.findByID({
|
||||
collection: 'pages',
|
||||
id: 5,
|
||||
locale: 'pl'
|
||||
})
|
||||
|
||||
const dePage = await payload.findByID({
|
||||
collection: 'pages',
|
||||
id: 5,
|
||||
locale: 'de'
|
||||
})
|
||||
|
||||
console.log("=== KONTAKT PL LAYOUT ===")
|
||||
console.log(JSON.stringify(plPage.layout, null, 2))
|
||||
console.log("=== KONTAKT DE LAYOUT ===")
|
||||
console.log(JSON.stringify(dePage.layout, null, 2))
|
||||
const formConf = payload.collections['forms'].config;
|
||||
const titleField = formConf.fields.find(f => f.name === 'title');
|
||||
console.log('Form title is localized:', titleField?.localized);
|
||||
|
||||
process.exit(0)
|
||||
}
|
||||
const kontaktALL = await payload.find({ collection: 'pages', locale: 'all', where: { slug: { equals: 'kontakt' } } });
|
||||
console.log(JSON.stringify(kontaktALL.docs[0], null, 2));
|
||||
|
||||
process.exit(0);
|
||||
}
|
||||
run()
|
||||
|
||||
Reference in New Issue
Block a user