Skip to main content

Questions tagged [uri]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
100 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} ...
Marc 's user avatar
  • 344
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 ...
Sandwich's user avatar
  • 636
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 ...
Emma Swann's user avatar
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} ...
comtyler's user avatar
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 - ...
Philipp Roth's user avatar
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 ...
Nick Langer's user avatar
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 ...
Sebastiaan Schillebeeckx's user avatar
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 ...
Mark H.'s user avatar
  • 411