stefkey
(Stefan Johänntgen)
October 30, 2020, 6:26pm
1
Hi,
I get this message:
The fluid file “resource://Neos.Form/Private/Templates/NodeTypes/ContactForm.html” was not found.
Where can I define the path of my form template? In a ContactForm.fusion or NodeType.Content.ContactForm.yaml?
i need something like this:
resource://My.SitePackage/Private/Templates/NodeTypes/ContactForm.html
Martelinho
(Thomas Martelo)
October 30, 2020, 6:37pm
2
Based on the demo project structure you should find it in /neos/DistributionPackages/Your.Project/Configuration/Settings.yaml:
Neos:
Form:
presets:
bootstrap:
formElementTypes:
'Neos.Form:Base':
renderingOptions:
layoutPathPattern: 'resource://Neos.Demo/Private/Templates/ContactForm/{@type}.html'
stefkey
(Stefan Johänntgen)
October 30, 2020, 6:42pm
3
thanks, i have this but it don’t work:
Form:
yamlPersistenceManager:
savePath: 'resource://Ws.Fshsite/Private/Form/'
presets:
default:
formElementTypes:
'Neos.Form:Base':
renderingOptions:
layoutPathPattern: 'resource://Ws.Fshsite/Private/Templates/ContactForm/{@type}.html'
'Neos.Form:Form':
renderingOptions:
templatePathPattern: 'resource://Ws.Fshsite/Private/Form/{@type}.html'
preset1:
title: 'Anmeldung'
parentPreset: 'default'
formElementTypes:
'Neos.Form:Base':
renderingOptions:
layoutPathPattern: 'resource://Ws.Fshsite/Private/Templates/ApplicationForm/{@type}.html'
'Neos.Form:Form':
renderingOptions:
templatePathPattern: 'resource://Ws.Fshsite/Private/Form/{@type}.html'
Martelinho
(Thomas Martelo)
October 30, 2020, 7:14pm
4
The ressource in your message contains the NodeTypes directory which isn’t set in your Settings.yaml. From the given info I unfortunately can’t tell you why this is the case.
stefkey
(Stefan Johänntgen)
October 30, 2020, 7:25pm
5
ok, many thanks. I try to build a form like this, but there is the template error