[Neos] How to integrate a custom login form in Neos site layout
Aske Ertmann
aske at moc.net
Tue Feb 4 18:38:18 CET 2014
Hi Pavlina
Haven’t tried your example unfortunately so cannot elaborate on that, but regarding insert a plugin as non-content should be straight forward.
When you have defined your plugin in TypoScript you should be able to just create an instance of it in TypoScript.
page.body.parts.plugin = My.Package:Plugin
Here’s an example of defining a plugin in TypoScript https://git.typo3.org/Packages/NeosDemoTypo3Org.git/blob/HEAD:/Resources/Private/TypoScripts/Library/NodeTypes/Flickr.ts2
/Aske
On 04/02/2014, at 16.09, Pavlina Drosos <pavlinadrosos at gmail.com> wrote:
> Hi all,
>
> I have a custom front-end users flow package and I must integrate a login form in a Neos Site package. The login form must be in the layout and visible for all pages.
>
> The first I've tried was just to put the form in the layout, but this code:
>
> <f:form controller="Login" action="authenticate" package="My.Package" method="post">
>
> throws an exception:
> landingPage<TYPO3.Neos:Page>/body:
> Could not resolve a route and its corresponding URI for the given parameters.
>
> The Controller Login and the action authenticateAction already exist in my package.
>
> My second idea was to integrate the login form as a plug-in, but all examples in the documentation are about integrating a plug-in inside a page node, not in the layout.
>
> Could someone help me with these issues and point me to the right direction? How must I integrate this login form in the in the correct way? Should I add some specific routes in the Routes.yaml configuration file? I've tried to add the Flow routes, but without success.
>
> Thanks a lot!
> Pavlina
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
More information about the Neos
mailing list