Questions tagged [uri]
The uri tag has no usage guidance.
8 questions
1
vote
1
answer
99
views
Section: dynamic Entry URI Format
My solution works, but I seem to have some caching issues ... so I'm unsure weather my solution is useful or not?
Entry URI Format of Section (Channel): {{craft.entries.id(530).one().uri}}/{slug}
...
0
votes
0
answers
34
views
Can't reference custom field in Section's Entry URI Format
Craft 3.7.33
I've got a channel Section called "Stories", and a plain text custom field, subTitle, which I want to use in the Entry URI Format. Right now, that is stories/{slug}. When I ...
1
vote
1
answer
275
views
Best way to redirect old URLs
It has been recommended to me to change our URL structure from:
site.com/yyyy/mm/dd/slug
to
site.com/variable-element/slug
where the variable may be two segments.
Is this something Retour can do, or ...
0
votes
2
answers
414
views
Nested categories URI format on entries
I have a Category Group that can be 3 levels deep. Each category has its own page and its URI structure appends each category as you go deeper, like so:
{parent ? parent.uri : 'root-uri' }/{slug}
...
0
votes
0
answers
46
views
Localization for "Home" site (eg https://example.com/de" results in 403 — Forbidden
I have set up a multilingual site in Craft CMS and the localization (via url-slug eg. .../de/...) works on all pages. However, on the home site (index.twig) this leads to an error message "403 - ...
1
vote
1
answer
168
views
nested sections
how can i achieve the following result?
i have a structured section called products like /hardware/apple/iPhone which gets the template /templates/productpage.twig
now i need need to load a different ...
1
vote
2
answers
926
views
How to remove something from the slug/url
I got entries in the folder /cms/web/videos/ and the url display this: http://domainname.com/cms/web/videos/barco-auro.
I want it to be this: http://domainname.com/videos/barco-auro.
How do I create ...
1
vote
2
answers
44
views
Section URI format deprecation error
I'm using the following URI format of a channel
{slug}-{restaurant.one().slug}-{locations.last().slug}-{locations.one().slug}
It throws a deprecation error caused by locations.last()
however when I ...