Server Side Rendering in NodeJS

Hi everyone,
I followed the tutorial for using the server connect connected to server side rendering in NodeJs (Wappler Documentation - Using Server Connect Data for Server Side Rendering in NodeJS).

In my layout I set the Template Data with 3 variables

I created the server connect with the query that retrieves the page info

In the page I connected the meta tags to the query input values

The thing I don't understand is how to set the 2 global variables lang and idpage that I use to filter the single query.
In the tutorial it seems to me that the product id is used by reading it from the routing parameter but in my case I would only have the language and not the page id.

Do you have any suggestions?

Where do you want to set those values?

Also, seeing as you are getting those values from $_PARAM object, you can use the same on client side using what is called a server side binding.
So something like <%= $_PARAM.pageid %>.

You should also be able to access those values from the URL directly using query.pageid - which is parsed by client-side JS.