Custom URL's

Create dynamic pages with custom URL's

Why custom URL's?

Custom URL's are there to make your pages more dynamic. You can doe this by setting parameters in your URL, or use a query at the end of the URL.

One of the most used method is setting parameters in your URL, for example by creating detail and edit pages with a specific document you want to edit: /user/:guid/:action. The variables in the URL are set with the colon (:), and the name of the parameter directly after it. To get the value of this parameters you use drag a get (custom) fields from the Params pin of the UI page. When you don't want to make a required paramate you can add a question-mark at the end of the parameter like the example on the right.

custom_url_default.png

Query in url

The query is an alternative to the Parameters. The query is made so you can use variable without changing the path name to your page. To add a query variable to your URL, you will have to add a question-mark at the end of your URL. From here you can add variables: an example using the URL from the image on the right: /tutorial/query?name=RUAL. For multiple variable you can add & in between the variables: /tutorial/query?name=RUAL&country=netherlands

custom_url_query.png

Optional pathnames

This might be an option you will not use that much, but is definitely a nice to know feature for URL's. THe URL's created can have optional pathnames. This can come in handy when you want your URL to match with the language the users is using. To set these optional pathnames you have to surrond the optional part of the URL with Brackets: ( and ). In between every optional path needs to start with an Vertical-line: | followed with the pathname. The image on the right has an example.

custom_url_optional.png