Commit f70461ca authored by ancoats's avatar ancoats
Browse files

Define custom routes with URL Rules

parent cbcbec67
dateModified: 1611948705
dateModified: 1611954984
email:
fromEmail: it@extinctionrebellion.be
fromName: 'Extinction Rebellion Belgium'
......
siteUid: 039dabba-4285-4138-804a-730a8eb3718a
sortOrder: 4
template: _page-templates/template-user-local-group
uriParts:
- lokale-gruppen/
-
- '*'
- '[^\/]+'
uriPattern: 'lokale-gruppen/<any:[^\/]+>'
siteUid: 840e993f-174d-4c91-a9f9-d4d5dd903848
sortOrder: 3
template: _page-templates/template-user-local-group
uriParts:
- lokale-groepen/
-
- '*'
- '[^\/]+'
uriPattern: 'lokale-groepen/<any:[^\/]+>'
siteUid: 0211ae0a-98a7-4b79-96d0-334ecd7a80d6
sortOrder: 6
template: _page-templates/template-user-events
uriParts:
- evenements/u/
-
- '*'
- '[^\/]+'
uriPattern: 'evenements/u/<any:[^\/]+>'
siteUid: 039dabba-4285-4138-804a-730a8eb3718a
sortOrder: 8
template: _page-templates/template-user-events
uriParts:
- veranstaltungen/u/
-
- '*'
- '[^\/]+'
uriPattern: 'veranstaltungen/u/<any:[^\/]+>'
siteUid: 784e880e-a333-4497-a19a-e2b53a38ef45
sortOrder: 5
template: _page-templates/template-user-events
uriParts:
- events/u/
-
- '*'
- '[^\/]+'
uriPattern: 'events/u/<any:[^\/]+>'
siteUid: 0211ae0a-98a7-4b79-96d0-334ecd7a80d6
sortOrder: 2
template: _page-templates/template-user-local-group
uriParts:
- groupes-local/
-
- '*'
- '[^\/]+'
uriPattern: 'groupes-local/<any:[^\/]+>'
siteUid: 784e880e-a333-4497-a19a-e2b53a38ef45
sortOrder: 1
template: _page-templates/template-user-local-group
uriParts:
- local-groups/
-
- '*'
- '[^\/]+'
uriPattern: 'local-groups/<any:[^\/]+>'
siteUid: 840e993f-174d-4c91-a9f9-d4d5dd903848
sortOrder: 7
template: _page-templates/template-user-events
uriParts:
- evenementen/u/
-
- '*'
- '[^\/]+'
uriPattern: 'evenementen/u/<any:[^\/]+>'
......@@ -19,5 +19,36 @@
*/
return [
'en' => [
'events/u/<username:{slug}>' => [
'template' => '_page-templates/template-user-events'
],
'local-groups/<username:{slug}>' => [
'template' => '_page-templates/template-user-local-group'
],
],
'fr' => [
'evenements/u/<username:{slug}>' => [
'template' => '_page-templates/template-user-events'
],
'groupes-local/<username:{slug}>' => [
'template' => '_page-templates/template-user-local-group'
],
],
'nl' => [
'evenementen/u/<username:{slug}>' => [
'template' => '_page-templates/template-user-events'
],
'lokale-groepen/<username:{slug}>' => [
'template' => '_page-templates/template-user-local-group'
],
],
// 'de' => [
// 'veranstaltungen/u/<username:{slug}>' => [
// 'template' => '_page-templates/template-user-events'
// ],
// 'lokale-gruppen/<username:{slug}>' => [
// 'template' => '_page-templates/template-user-local-group'
// ],
// ],
];
{% extends '_page-templates/template-category.twig' %}
{% set templateClass = 'template-category template-category-events' %}
{% set username = craft.app.request.getSegment(3) %}
{% set user = craft.users()
.group(['pseudonyms', 'collectives', 'localGroups'])
.username(username)
......
{% extends '_layouts/default.twig' %}
{% set username = craft.app.request.getSegment(2) %}
{% set user = craft.users()
.group('localGroups')
.username(username)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment