Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
761 views
in Technique[技术] by (71.8m points)

typo3 - Embed custom ext:form in Fluid layout file

I have a custom "Contact Us" form that sits within my Sitepackage - using TYPO3 v10.

The form works fine and I'm able to insert the form on any page the same way you'd insert any other form/content element.

What I'd like to do is have the form present on every page by adding it to my global layout template, so that it sits in the footer.

From the docs, I added this to my Fluid layout template:

<formvh:render persistenceIdentifier="EXT:my_site_package/Resources/Private/Forms/my_contact_us.form.yaml"/>

And I added this to my form conf (my_contact_us.form.yaml):

    renderingOptions:
      controllerAction: perform
      addQueryString: false
      argumentsToBeExcludedFromQueryString: [ ]
      additionalParams: [ ]

When I do this, I get a type error:

Argument 1 passed to TYPO3CMSExtbaseServiceExtensionService::getPluginNameByAction() must be of the type string, null given

Is there something I haven't configured correctly? Any help is appreciated, thanks again.

question from:https://stackoverflow.com/questions/65935503/embed-custom-extform-in-fluid-layout-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...