Dynamic routing of a large page

You’d need to make a route for each case: 1 param, 2 params, 3 params

The permalink is the combination of all these params, you can obtain so by concatenating in Wappler steps, or access a certain $_SERVER variable that might contain that already

Thanks for the information.
But how exactly do I do that?

“Advanced Rewriting with URL Parameters” on Teodor’s tutorial, start by attempting to grab the params

Also, I’m only familiar with NodeJS, so I don’t know if the process to do this is different on PHP

On NodeJS you can attach a server action to a page and there you can run the steps to concatenate the params into a permalink variable

Unfortunately I can’t get any Nodejs page online.

Christian,

  1. Have you set the server side of the project up as per

  1. Have you set a target as per

Then there should be no problem in following

You do not need NodeJS for this.

I’ve come that far.
and a simple route works too.

But what’s next?

How do I get out?:
www.mysite.de?pageid=123&pageid=456&pageid=789
ore www.mysite.de?catid=123&subcatid=456&pageid=789
This route: www.mysite.de/cat1/location1/produkt1

I see just one, /:permalink/, 1 param (also, erase the slash in the end)

Now create for 2 and 3 params, something like for 3 params:
/:cat1/:cat2/:cat3

ok, I can pull the page content over the permalink.

but how do I get the variables from the link via the route into my query?

www.mysite.de/cat1/location1/produkt1
/:cat1/:location/:product

$_PARAM.cat1

See if you can find a way to access that variable, I only know on NodeJS

sorry, my programming skills are limited

Take a look at this if you are wanting to get the URL param into a server connect action

1 Like

Thanks Sorry_Duh,

that was exactly what i was looking for all along :+1:
Too bad about the long time of the previous conferences :crazy_face:

Thank you again!!