Action and method as component settings for CMS forms
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Action and method as component settings for CMS forms
Hi
I was wondering if there's an option for defining a form's `method` and `action` values in the CMS component settings?
I was wondering if there's an option for defining a form's `method` and `action` values in the CMS component settings?
Aimeos version: ~2021.07
Laravel version: ^8.40
PHP: 7.4.9
Laravel version: ^8.40
PHP: 7.4.9
Re: Action and method as component settings for CMS forms
You have to create a component like this one:
https://github.com/aimeos/ai-cms-grapes ... #L449-L516
The traits define the options (method and action in your case) and the init and "on...Change" methods define what happens. Finally, add a block like this which defines the form:
https://github.com/aimeos/ai-cms-grapes ... #L335-L362
https://github.com/aimeos/ai-cms-grapes ... #L449-L516
The traits define the options (method and action in your case) and the init and "on...Change" methods define what happens. Finally, add a block like this which defines the form:
https://github.com/aimeos/ai-cms-grapes ... #L335-L362
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star