Plugin 1.3 Dynamic Tags, faq_ueberschrift, quadratische Bilder, Bausteine aus dem Text

This commit is contained in:
2026-09-22 12:00:31 +02:00
parent f713b3b9dd
commit 54bd0b02a9
11 changed files with 351 additions and 157 deletions

View File

@@ -74,7 +74,7 @@ KONF = node("Konfiguration", "n8n-nodes-base.set", 3.4, [-240, 190], {
{"id": nid(), "name": "elementor_ausgabe", "value": False, "type": "boolean"},
{"id": nid(), "name": "bild_aktiv", "value": True, "type": "boolean"},
{"id": nid(), "name": "bild_modell", "value": "gpt-image-2", "type": "string"},
{"id": nid(), "name": "bild_groesse", "value": "1536x864", "type": "string"},
{"id": nid(), "name": "bild_groesse", "value": "1200x1200", "type": "string"},
{"id": nid(), "name": "bild_qualitaet", "value": "medium", "type": "string"},
{"id": nid(), "name": "faq_ueberschrift", "value": "Häufige Fragen", "type": "string"},
{"id": nid(), "name": "benachrichtigung_an", "value": "privat@lucas-orth.de", "type": "string"},
@@ -187,7 +187,7 @@ const faqText = (Array.isArray(artikel.faq) ? artikel.faq : [])
const bewertungs_html = [
artikel.kurzantwort ? `<p>${artikel.kurzantwort}</p>` : '',
artikel.content_html || '',
faqText ? `<h2>Häufige Fragen</h2>\n${faqText}` : '',
faqText ? `<h2>${artikel.faq_ueberschrift || 'Häufige Fragen'}</h2>\n${faqText}` : '',
].filter(Boolean).join('\n');
const praxis = Array.isArray(artikel.praxis) && artikel.praxis.length ? artikel.praxis
@@ -440,6 +440,7 @@ const heute = new Date().toISOString().slice(0, 10);
const meta = {
kurzantwort: a.kurzantwort || '',
faq_ueberschrift: a.faq_ueberschrift || '',
cta_ziel: a.cta_ziel || '',
stand_datum: a.stand_datum || heute,
faq: Array.isArray(a.faq)
@@ -659,7 +660,7 @@ const prompt = [
'Clean closed outlines, no stray marks, no hatching and no small dashes inside the shapes.',
'Object fills are flat off-white cream (#F9F7F5), no shading, no highlights.',
`Motif: ${zeile.bildmotiv}${leer}. Shown straight from the front, not tilted.`,
'Minimal and iconic, lots of empty space, the object takes about 35 percent of the image height.',
'The whole motif sits in the exact center and stays inside the middle band of the image: it takes about 28 percent of the image height and at most 60 percent of the image width, with wide empty background above and below.',
'No text, no letters, no numbers, no currency symbols, no logo, no border, no frame, no rounded corners, no people.',
].join(' ');