Hi,
I have created a new Plugin, what is showing a Controller-Actions View-Fluid-Template.
When I am creating <f:link.action> links inside this template, they are are
generated like this:
http://neos.local/mycurrentpage
?–my_package-plugin_configurator_index%5B%40package%5D=my.package
&–my_package-plugin_configurator_index%5B%40controller%5D=testjson
&–my_package-plugin_configurator_index%5B%40action%5D=testjson
&–my_package-plugin_configurator_index%5B%40format%5D=json
&–my_package-plugin_configurator_index%5Bemail%5D=Blaaaaa
&–my_package-plugin_configurator_index%5Bname%5D=bluuuububbbbfdfdg
In my template: <f:link.action package=“My.Package” action=“testJson” controller=“TestJson” format=“json” arguments="{email: ‘Blaaaaa’, name: ‘bluuuububbbbfdfdg’}" > JSON </f:link.action>
I want to create a normal action-link-route, like “http://neos.local/mysuperapi/getdata”.
I have created this route (and i can visit this route by manual typing):
name: ‘TestRoute MySuperApi’
uriPattern: ‘mysuperapi/{@action}’
defaults:
‘@package’: ‘My.OtherPackage’
‘@controller’: ‘MySuperApi’
‘@format’: ‘json’
But when I use
<f:link.action package=“My.OtherPackage” action=“getData” controller=“MySuperApi” format=“json” arguments="{email: ‘Blaaaaa’, name: ‘bluuuububbbbfdfdg’}" > JSON </f:link.action>
it will create a Link to the current page and with these “plugin prefix arguments”…
THE ISSUE IS, that when I call:
then I get a JSON what is wrapped by the HTML-Fluid-LAYOUT.
But when I call “http://neos.local/mysuperapi/getdata” manually, then I get only the JSON, without surrounding HTML-LAYOUT…
Soo, what have I to do, to create “normal” Action-Links routes like “http://neos.local/mysuperapi/getdata”