Listing Products
Name | Price | Actions |
---|---|---|
Apples
|
12
|
|
Oranges
|
15
|
|
Bananas
|
13
|
|
Hhh
|
56
|
Label | Value |
---|---|
Locale: | en |
Audience: | Great Britain |
Contact: | sales@example.com |
Helper: | gb |
Automated Helpers
As alternative routes are generated, the default Phoenix Route Helpers now return values depending on the 'scope' the currently is in.
- Routes.product_show_path(@socket, :show, 2) => /gb/products/2
- Routes.product_show_url(@socket, :show, 3) => https://routex.fly.dev/gb/products/3
- Go to homepage in current scope
Static Helpers
The helpers for alternative routes always return the same value. Below are the helpers to link to a page in scope Europe/Netherlands.
- Routes.product_show_europe_nl_path(@socket, :show, 2) => /europe/nl/producten/2
- Routes.product_show_europe_nl_url(@socket, :show, 3) => https://routex.fly.dev/europe/nl/producten/3
Alternatives
The extension AlternativeGetters makes it easy to link to alternative pages.