staging4hosters
Verified User
- Joined
- Jul 20, 2019
- Messages
- 12
Hi,
I am trying to create a plugin. I have gone through (I think) all the available documentation for it, but I can't make neither of this to work.
I would appreciate some help, please.
I would like to either have multiple pages(views), like:
/user/plugins/myplugin/
/user/plugins/myplugin/page2
/user/plugins/myplugin/page2/
For changing from one to the next it could be done via button click or javascript redirect.
I have tried creating user/page2.html, user/page2.raw, user/page2/index.html, user/page2/index.raw (chmod +x) and I only get 404 in all cases. The only one that works for me is the user/index.html (or user/index.raw).
Alternatively passing the query parameters would be a valid alternative for achieving what we want.
I have tried redirecting inside the iframe with javascript with
and also outside of the iframe with
and I get the same issue: the url gets `redirect=yes` appended and then redirected without query parameteres (all query parameters get cleared).
When I do
it is empty.
How could I solve any of this issues?
Thank you very much, best
I am trying to create a plugin. I have gone through (I think) all the available documentation for it, but I can't make neither of this to work.
I would appreciate some help, please.
I would like to either have multiple pages(views), like:
/user/plugins/myplugin/
/user/plugins/myplugin/page2
/user/plugins/myplugin/page2/
For changing from one to the next it could be done via button click or javascript redirect.
I have tried creating user/page2.html, user/page2.raw, user/page2/index.html, user/page2/index.raw (chmod +x) and I only get 404 in all cases. The only one that works for me is the user/index.html (or user/index.raw).
Alternatively passing the query parameters would be a valid alternative for achieving what we want.
I have tried redirecting inside the iframe with javascript with
Code:
window.location = '/user/plugins/myplugin?mygetparam=something`;
Code:
window.top.location = '/user/plugins/myplugin?mygetparam=something`;
and I get the same issue: the url gets `redirect=yes` appended and then redirected without query parameteres (all query parameters get cleared).
When I do
Code:
echo getenv['QUERY_STRING'];
How could I solve any of this issues?
Thank you very much, best