I have a custom add-on with a module that contains a class:method that generates a form.
I have registered the method as an Action (i.e. you can trigger it by going to domain.com/?ACT=XX
).
So far so good… but I would like the form to be accessible via a more meaningful / useful URL (e.g. domain.com/myform
).
Is there a way of coercing EE to run the method in response to an aribitrary set of segments rather than via the ACT=
url that lives within EE (I realise I can do this via e.g. .htaccess etc.)?
Ideally I would like to set up something self-contained within the add-on to do this (so when you install add-on it adds whatever routing fix is required to the EE installation automatically).
Would value any thoughts / suggestions / insights!
Thanks!
That’s helpful thanks. Having a tag on a page load the form occurred to me, but I was trying to find a solution that doesn’t involve either installing more add-ons on the EE host system, or adding a template/group the public site.
Do you think there is a way to call a CP page (and so use the CP/URL routing / mcp file) (or perhaps simulate this) even if the user is not logged into the site?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.