Recently Browsing 0 members
- No registered users viewing this page.
With JS fetch() it is a bit tricky to get for example $_POST populated (params need to be FormData / forms), but would it possible to get PW $input (get, post, urlSegments, queryString) working for fetch requests?
Is there a fix / hook / workaround to solve it PW side?
A client wants to use landing pages coming from Google ads, and needs to hand over a keyword and a title for the landing page.
The URL would look like this: ..../l2/keyword/Funny title with løts of special chåracters änd spaces/ (Just an example)
I tried to encode the URL in different ways but not even spaces work and result in a "404 Page not found".
Then I found this Github issue: https://github.com/processwire/processwire-issues/issues/720
At least I know that I am not the only one with this kind of problem.
The client is a very pragmatic fellow and suggested to custom-encode the segments like: (don't try to read it)
and then replace all the _S_ _a2_ with the REAL characters in the template.
Mhh... well... sure I could do that, but I don't like it, and editors would have to write the segments with a translation sheet!
Anyone have a better idea?
PW 3.0.98 PHP 7.x
I have a parent page containing a list of it's children. When you click on one of the children the page opens up in a modal box trough ajax. So far so good.
But if i directly load the page through the url (parent/child) i get the child page. Is there a way of loading the parent page instead with the child page opened inside the modal box? I was first thinking of using URLSegments so it would load the parent page with the child name as segment however since the segment is an actual page it will load the page instead.